0
Code error
Hey im trying do get clickable button but seem like my coding fails. Will you take a look for me? https://code.sololearn.com/WMQJ9p7GTEhA/?ref=app
3 Réponses
+ 4
Because JavaScript is case sensitive, you would need to make sure that whatever needs to be capitalized gets capitalized as to ensure the program recognizes that particular keyword. In the case of your program, you seem to have getElementById on line 19 all lowercase, so switching it to its proper capitalization fixes the problem
+ 1
JavaScript is case sensitive. document.getElementById("someid") is what you should do
and use quotation marks around attributes (")
ex. type=button is wrong do type="button".
This counts for all.
Here is a fixed code:
https://code.sololearn.com/WgW9pi3ZYi78/?ref=app
0
Thanks