Javascript - Convert String to Number

JULY 26TH 2013

Converting a string to a number is easy in javascript. I'll show you how to do it.

This is how its done.
follow me — @malcolmtyson
Its very simple. To convert a string to an integer in javascript, you just use the parseInt function.
var string = '2300';
var integer = parseInt( string , 10);
All done!


If you liked this — you should follow me on twitter.

Read More Posts »