Last Updated: February 25, 2016
·
350
· tony612

Number string to number in JS

$ node
> a = "10"
'10'
> a = +a
10
> a = "-10.9";
'-10.9'
> a = +a;
-10.9