Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

parse string to int nodejs

parseInt("25") // returns 25 (typeof === number)
Number("25") // returns 25 (typeof === number)
Number("25") // returns 25
Number("25.51") // returns 25.51
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #parse #string #int #nodejs
ADD COMMENT
Topic
Name
3+1 =