Going from a String to a Number | kirupa.com

by kirupa | 13 November 2013

By design, strings deal with text-based things. Numbers deal with...um...numbers. For the most part, unless you are displaying some text that includes numerical data, you will never need to mix and match numbers and strings together. That would just be weird and possibly unnecessary:


This is a companion discussion topic for the original entry at http://www.kirupa.com/html5/going_from_a_string_to_a_number.htm