What is wrong with the JS here? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is wrong with the JS here?

Can someone please tell me what is wrong in the javascript that is not letting .onclick to call the function in this code: https://code.sololearn.com/Www9u2SuVg3h

20th Jan 2022, 5:56 PM
Kamil Hamid
Kamil Hamid - avatar
2 Answers
0
You process the script before button is defined
20th Jan 2022, 6:00 PM
Oma Falk
Oma Falk - avatar
0
thanks
20th Jan 2022, 6:03 PM
Kamil Hamid
Kamil Hamid - avatar