u is not defined??? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

u is not defined???

https://code.sololearn.com/WoOCdvsepc7G/?ref=app Again,I'm a beginner at website development,(why I need to say that) BTW,it said that function u is not defined on the html line 9 (or maybe js,idk)

19th Oct 2019, 11:41 AM
prisma
prisma - avatar
1 Answer
0
Chang your: function u(){} Into: document.querySelector("button").onclick=()=>{}
19th Oct 2019, 12:16 PM
Thống Nguyễn
Thống Nguyễn - avatar