+ 1
I NEED HELP IN JAVA_SCRIPT
why this code doesn't work? how to fix it? https://code.sololearn.com/WXohxpj5t1td/?ref=app
5 Respuestas
+ 8
just had to change the order of last line of code you were assigning a value to a variable before creating it
https://code.sololearn.com/WK3nTHUy55YY/?ref=app
+ 9
document.getElementById("x")
There is no element with ID "x", probably you meant "add".
document.getElementById("add")
+ 4
Is it normal that it adds a new line even the input has no value ?
+ 2
no, just look at js code i want to innerHTML div with id="x"
+ 2
Thanks!!!