+ 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
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");
}
+ 8
if {
} else {
}
+ 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!
+ 3
MEET MEHTA what was the roung ?
+ 2
You have forgot to close if statement and started else statement.
+ 1
what is roung?
+ 1
you have to put condotions