+ 2
Did you type in a text longer than 100 characters? There's a maximum of input characters, at least in sololearn...
+ 1
onload just makes sure that the js is executed when the html is loaded
+ 1
use window.onload when you are using Sololearn's javascript tab. It makes sure that the html is loaded first, so it can find the DOM elements.
0
It's trying to get the html element before it is loaded.
Put all the js inside of
window.onload = function() {
// your js
}
0
I entered "Hello world" and ut was typed
0
Maybe newline characters? You could try to remove them from the string before the animation starts
0
Why did you remove window.onload? Now I get the same type error as in the beginning
0
Seems to work for me?
Which error message exactly do you get?
0
What do you mean "it stops"?
The text gets typed, then it stays on screen.
0
hi mom when did u start programming
0
Java script project 1/6 already finished, but project two not active and i didn't gain java script certficate.
0
Your Mom
Sololearn seems to have a limit on the length of the input in the prompt...
maybe use a text input element instead?
something like this:
https://code.sololearn.com/WZPr0l9yHZaF/?ref=app
0
Can someone help me how to code with Qbasic