Conversion incorrect numbers in JavaScript
When trying to convert a string containing
not only numbers, but also other characters,
the Number function will return
the value NaN:
javascriptalert(Number('2s')); // shows NaN
The same effect will bring the use of plus:
javascriptalert(+'2s'); // shows NaN