+ 1
HELP! Why isnāt my javascript code working?
Objective: 1. I want to set the variable ānameā = the userās input after asking for the name of the koala. Iām not sure if I did it right. 2. After the function Name() runs, then I want to change the <h1> to the name of the koala. Can someone tell me why the header isnāt changing to the name of the koala? https://code.sololearn.com/We4BFeQJk50E/?ref=app
5 Answers
+ 5
Yes, is equal a document.getElementById("printName").innerHTML=name;
+ 1
Here is an example based on your code
https://code.sololearn.com/WLb7mGMV4WLO/?ref=app
+ 1
The condition firstFunction === true is executed before your function Name()
0
Jesus Eduardo Canul Koyoc thank you so much! Is ānā a variable?