+ 1
Prompt Value
How do you assign a certain thing to execute when a certain value is input on a prompt?
1 Réponse
+ 2
You just use an if statement.
if prompt == "Secret message" {
alert("Yay!");
}
How do you assign a certain thing to execute when a certain value is input on a prompt?