If you're looking to convert a string to a number, use
- either parseInt or parseFloat. If using parseInt, I'd recommend always passing the radix too.
- use the Unary + operator e.g. +"123456"
- use the Number constructor e.g. var n = Number("12343")
*there are situations where the number will internally be held as an integer.