+ 1

How can i put many var in one prompt box?

Please give ans with a example ......

9th Oct 2020, 7:07 AM
RD:programmer
RD:programmer - avatar
5 Answers
+ 2
You get an array for example when numbers are entered and separated with spaces: let a = prompt().split(' '); for(let x of a){ console.log(x); }
9th Oct 2020, 12:20 PM
JaScript
JaScript - avatar
+ 3
I dont understand ur question. Please answer: 1. What do you want as result? 2. Which language? 3. Anything else?
9th Oct 2020, 8:43 AM
Steve Sajeev
Steve Sajeev - avatar
+ 2
Please describe ur question more briefly
9th Oct 2020, 7:32 AM
Steve Sajeev
Steve Sajeev - avatar
9th Oct 2020, 8:33 AM
Kevin ★
+ 1
Javascript If i want to put more than one var what should i do ? Var a=prompt("i am"," ","and", " " )
9th Oct 2020, 9:37 AM
RD:programmer
RD:programmer - avatar