0

Please, what is wrong with my java code?

I keep getting an uncaught error on line 2 and I don't know how to fix it. https://code.sololearn.com/WrWmrhTLZua7/?ref=app https://code.sololearn.com/WrWmrhTLZua7/?ref=app https://code.sololearn.com/WrWmrhTLZua7/?ref=app

4th Feb 2022, 9:44 AM
Adese
1 Odpowiedź
+ 2
onload=()=>{ var button = document.querySelector("#button"); button.onclick = function() { alert("Welcome"); }}; //it's javascript code, not java
4th Feb 2022, 9:55 AM
Jayakrishna 🇮🇳