Search
 
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
Name
5+6 =