Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

convert string to number

// Convert string to number in Javascript. 
// If the quantity cannot be converted the result will be NAN
const quantity = +quantity
Source by www.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #convert #string #number
ADD COMMENT
Topic
Name
4+2 =