+ 2
it is working but i want expert way in which omit num<100e100 || num>100e-100 i used this in case of user give alphabetic input
6 ответов
+ 4
Use !isNaN(num) as Number("y") returns NaN.
+ 4
After finishing the courses here, move on to this site to extend your knowledge.
https://www.w3schools.com/
+ 3
if (num!=0 && num<100e100 || num>100e-100 )
becomes
if (num!=0 && !isNaN(num) )
+ 2
thanks it works where i learn all about js
+ 2
thanks
+ 1
i can't understand can you write here some line of code which should i change