New course! Every coder should learn Generative AI!
Try a free lesson+ 2
ParseInt problem
I try to use parseint on a text input. If I put 2 I get 2 that’s correct . If I enter 2W I get 2 instead of NaN . How to proceed?
3 Answers
+ 1
Thank you all for your answers !
It helps me very much
+ 1
You can use Number() to get your desired effect.