Prompt output? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 1

Prompt output?

How can I alert the prompt output ("hey") if i wrote "hey" in the text field? My code: https://code.sololearn.com/WUpxRUqcRONl/?ref=app

29th May 2017, 1:59 PM
Jo P.
Jo P. - avatar
3 ответов
+ 17
hey = prompt("Write hey"); if (hey=="hey") { alert(hey); }
29th May 2017, 1:59 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 2
Oh thank you!!!
29th May 2017, 2:00 PM
Jo P.
Jo P. - avatar
0
look in JS in the code!
29th May 2017, 1:59 PM
Jo P.
Jo P. - avatar