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

9th Aug 2019, 6:49 AM
Darwan Suwanda
Darwan Suwanda - avatar
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
9th Aug 2019, 6:55 AM
Faisal
Faisal - avatar
+ 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
9th Aug 2019, 6:55 AM
Paul Grasser
Paul Grasser - avatar
0
Thanks
9th Aug 2019, 10:26 AM
Darwan Suwanda
Darwan Suwanda - avatar