parseInt("10")
// try using parsInt(x) // you can then use typeof(x) to confirm var myString = "555"; var myInt = parseInt(string); console.log(typeof myInt); // number