Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

JS cast a string into a Number

const input = "42";
const number = Number.parseInt(input, 10);
Source by kitt.lewagon.com #
 
PREVIOUS NEXT
Tagged: #JS #cast #string #Number
ADD COMMENT
Topic
Name
1+8 =