New course! Every coder should learn Generative AI!
Try a free lesson+ 5
How can I tell this stupid JavaScript to take a float as the value in the prompt function not a string?
2 Answers
+ 6
You can't but you can convert it afterwards.
let num = Number(prompt());
+ 6
@Schindlabua
Ok I'll try
Thanks