Discussions Q&R
what's wrong in this condition
prompt ("")
if (prompt ("1")) {
document.write("<h1>HTML Tutorial</h1>");
} else if (prompt ("2")) {
document.write("<h1>CSS Tutorial</h1>");
} else {
document.write("<h1>JavaScript Tutorial</h1>");
}
I want when type 1 in output HTML tutorial shows, type 2 css tutorial shows else javascript tutorial
0 Vote
13 RéponsesAujourd'hui en vedette
time complexity
1 Votes
For loop
1 Votes
Game dev advice
0 Votes
Markdown Support on SoloLearn?
0 Votes
Please read
1 Votes
strings & variables part 2
0 Votes
Help game dev projects
0 Votes
IQ Insight project
1 Votes