¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita+ 1
Prompt Value
How do you assign a certain thing to execute when a certain value is input on a prompt?
1 Respuesta
+ 2
You just use an if statement.
if prompt == "Secret message" {
alert("Yay!");
}