DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
7+7 =
Submit