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éponsesIncrement question
2 Votes
1 Réponsearray
1 Vote
4 RéponsesAujourd'hui en vedette
Naming Variables
0 Votes
Best way to learn
0 Votes
Times up quiz has error
0 Votes
JavaScript functions
0 Votes
Job
0 Votes
How important are threads to us?
0 Votes