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
1 Réponse
+ 2
onload=()=>{
var button = document.querySelector("#button");
button.onclick = function() {
alert("Welcome");
}};
//it's javascript code, not java