Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

convert string to a number javascript

let age = "23";
let intValue = +age //adding + operator converts it into integer
Source by htmlcheatsheet.com #
 
PREVIOUS NEXT
Tagged: #convert #string #number #javascript
ADD COMMENT
Topic
Name
2+8 =