Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

convert text 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 #text #number
ADD COMMENT
Topic
Name
3+4 =