answer this question | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 5

answer this question

Fill in the blanks to obtain the name of the user and alert it to the screen: var name = ("Enter your name:"); alert( );

31st Jan 2018, 5:59 PM
Tejaswini Mandava
Tejaswini Mandava - avatar
7 Answers
+ 26
var name = prompt("Enter your name:"); alert(name);
31st Jan 2018, 6:01 PM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar
+ 4
var name=prompt(“Enter your name”); alert(“Hello,”+name+” Welcome to SoloLearn”); Eg. I thing you should make this question in quiz factory.
11th Mar 2018, 2:20 PM
Warith Vatanaplachaigoon
Warith Vatanaplachaigoon - avatar
+ 3
var name= prompt("Enter name") alert("This question makes no sense and the right answer is wrong");
1st Feb 2018, 2:11 PM
Typhoon
Typhoon - avatar
0
answer this question Fill in the blanks to obtain the name of the user and alert it to the screen: var name = prompt ("Enter your name:"); alert(name);
5th Mar 2021, 6:54 PM
Kabelo Michael Letlala
Kabelo Michael Letlala - avatar
0
Please fill in the corresponding names for the built-in dialog boxes: ........is for getting input from the user; ......... is for displaying a message in a box;
12th Aug 2021, 8:27 AM
Byishimo Prince
0
var name = prompt ("Enter your name:"); alert( name );
25th Mar 2022, 1:28 PM
Roselle Mae Santos
- 3
No
31st Jan 2018, 9:31 PM
Jacob Pembleton
Jacob Pembleton - avatar