+ 2

Can we get placeholders in prompt boxes??

If yes,how??

21st Mar 2018, 7:43 AM
Dev Dutt
Dev Dutt - avatar
2 Answers
+ 9
Yes. Example :- prompt("What's your name?", "Dev Dutt") The placeholder text comes after the ","
21st Mar 2018, 8:35 AM
Nikhil
Nikhil - avatar
+ 2
ohh!! Thanks bro..
21st Mar 2018, 10:44 AM
Dev Dutt
Dev Dutt - avatar