+ 2

How do I prompt user to supply 10 or more input of intgers or floating point numbets at once using JS?

I have been using the " promt() " statement in code successfully but i had to use it as many times as possible to get my desired number of input. Now i want a situation where i can get more input in for one use of the "promt()".

10th Sep 2018, 8:17 PM
Omotesho Olusegun
Omotesho Olusegun - avatar
3 Respuestas
+ 5
js code: var p = prompt("put a number"); if (p >= 10){ true } else{ alert("error") }
11th Sep 2018, 1:24 AM
Armann
Armann - avatar
+ 4
Omotesho Olusegun 👍you're welcome
11th Sep 2018, 3:56 PM
Armann
Armann - avatar
+ 1
thanks Armann.
11th Sep 2018, 11:44 AM
Omotesho Olusegun
Omotesho Olusegun - avatar