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 thecodingcompany.hashnode.dev #
 
PREVIOUS NEXT
Tagged: #convert #string #number #javascript
ADD COMMENT
Topic
Name
5+3 =