+ 4

How to keep a value in prompt?

such as, when we make a prompt,then,it must display some text.

1st Jun 2018, 3:47 PM
keev23i
keev23i - avatar
2 Réponses
+ 4
prompt("WHAT IS YOUR NAME" , "ABC")
1st Jun 2018, 3:56 PM
Meet Mehta
Meet Mehta - avatar
+ 1
Do this: alert(“Hi “ + prompt(“What is your name?”) + “!”);
1st Jun 2018, 11:31 PM
Rowsej
Rowsej - avatar