DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
javascript number to string
const toNumber = str => +str; // Example toNumber('42'); // 42
Source by www.codewars.com #
PREVIOUS
NEXT
Tagged:
#javascript
#number
#string
ADD COMMENT
Topic
COMMENT
Name
5+6 =
Submit