Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

JS convert a string into a number

const three = "3";
typeof(three);
// 'string'

const threeInt = parseInt(three, 10);
typeof(threeInt);
// 'number'
Source by kitt.lewagon.com #
 
PREVIOUS NEXT
Tagged: #JS #convert #string #number
ADD COMMENT
Topic
Name
7+1 =