Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript convert number to string

const num = 2
const a = num.toString() // This throws an Error if num is null or undifined
const b = String(num) // In a case above, puts "null" or "undifined"
Source by www.codewars.com #
 
PREVIOUS NEXT
Tagged: #javascript #convert #number #string
ADD COMMENT
Topic
Name
4+9 =