what is roung in my Java script code ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

what is roung in my Java script code ?

solo says line 10 is roung but it is right https://code.sololearn.com/W7Gv92BcIqVt/?ref=app

17th Jul 2018, 9:45 AM
Omar Khalil Bakhsh
Omar Khalil Bakhsh - avatar
8 Answers
+ 3
Omar Khalil Bakhsh, Your function: document.getElementByid() correct function: document.getElementById() You did not correctly specify the function "getElementById". Below is the code for solving your problem. var yourname=prompt("what is your name "); if (yourname!=null){ document.getElementById("sayhello").innerHTML="hello"+yourname; } else { document.write("0_0"); }
17th Jul 2018, 10:01 AM
Alexander Sokolov
Alexander Sokolov - avatar
+ 8
if { } else { }
17th Jul 2018, 10:03 AM
Ahlin Chan
Ahlin Chan - avatar
+ 3
Hello, Omar Khalil Bakhsh ! Can you attach your code here? SoloLearn has an excellent ability to attach codes. Just use this function, and people can help you. Good luck with programming on SoloLearn!
17th Jul 2018, 9:50 AM
Alexander Sokolov
Alexander Sokolov - avatar
+ 3
MEET MEHTA what was the roung ?
17th Jul 2018, 10:01 AM
Omar Khalil Bakhsh
Omar Khalil Bakhsh - avatar
+ 2
You have forgot to close if statement and started else statement.
17th Jul 2018, 10:02 AM
Meet Mehta
Meet Mehta - avatar
+ 1
what is roung?
17th Jul 2018, 9:50 AM
Calviղ
Calviղ - avatar
+ 1
you have to put condotions
7th Aug 2018, 12:13 PM
1_phy
1_phy - avatar