+ 5

I'm facing TypeError problem with my code.

I'm getting error in JS, in the console it throwing error. Can anyone help me to solve this. Code link : https://code.sololearn.com/WVyPbblLPnXd/?ref=app

31st Jul 2020, 5:32 PM
Darshan R
Darshan R - avatar
6 Respostas
+ 8
Just put all you js in window.onload = function(){ //Here } Or put your js in script tag in html
31st Jul 2020, 5:39 PM
You
You - avatar
+ 5
Big Secret Gekoda Thank you so much for the solution.
31st Jul 2020, 5:51 PM
Darshan R
Darshan R - avatar
+ 4
Put it in the script tag in html Or: window.onload=function(){ //code here and function in js section }
31st Jul 2020, 5:37 PM
Goke Ekundayo
Goke Ekundayo - avatar
+ 3
Ive had same prob before but i figured it out
31st Jul 2020, 5:37 PM
Goke Ekundayo
Goke Ekundayo - avatar
31st Jul 2020, 5:38 PM
Goke Ekundayo
Goke Ekundayo - avatar
+ 3
Welcome
31st Jul 2020, 6:10 PM
Goke Ekundayo
Goke Ekundayo - avatar