0

How to get the prompt answer as number??

When ever I take prompt var gains elements as string and not in Number

24th Feb 2019, 5:09 PM
Zainab Idrees
Zainab Idrees - avatar
3 ответов
0
Could you specify the language?
24th Feb 2019, 5:56 PM
TurtleShell
TurtleShell - avatar
0
Js
7th Mar 2019, 5:24 AM
Zainab Idrees
Zainab Idrees - avatar
0
Like this: var input = parseInt(prompt());
7th Mar 2019, 6:45 AM
Maneren
Maneren - avatar