0
User input
How do I get user input without using prompt (on JS)?
3 Answers
+ 1
prompt(message, default_value) is used to get inputs like strings or numbers
confirm(message) for booleans, yes/no kind of input
examples:
name = prompt("What is your name");
likesMeat = confirm("do you like meat?");
0
So, I'm having problems getting number inputs, since the numbers i get through prompt are considered strings.
0
Nvm, i already figured it out, i were using threatening them as strings đ