Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

How to convert string to number in javascript

let number = +"5";
// add sign converts string variable into integer
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #How #convert #string #number #javascript
ADD COMMENT
Topic
Name
5+7 =