Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to convert string to int js

let string = "1";
let num = parseInt(string);
//num will equal 1 as a int
 
PREVIOUS NEXT
Tagged: #convert #string #int #js
ADD COMMENT
Topic
Name
8+5 =