+ 1

NaN question

How can I correctly handle NaN? https://code.sololearn.com/We1rSdjApTeH/#html Input something like 4e5(since E can be typed with number inputs) It should return NaN How can I make it display "Invalid Input" instead?

30th Sep 2018, 12:12 AM
Daniel Cooper
Daniel Cooper - avatar
1 Answer