Why this code throw an error??? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
16th May 2022, 6:13 AM
Mohd Junaid
2 Answers
+ 4
https://code.sololearn.com/Wn1pZtZoqV5F/?ref=app One typo: Listener And wrap an online around your code.
16th May 2022, 6:33 AM
Oma Falk
Oma Falk - avatar
+ 2
First theres a typo. Listner instead of Listener And to test js in sololearn u should wrap ur code in window.onload = () =>{ //code here };
16th May 2022, 6:34 AM
Arturop
Arturop - avatar