Looking for javascript Answers? Try Ask4KnowledgeBase
Looking for javascript Keywords? Try Ask4Keywords

JavaScript Converting a number to a string


Example

String(0) === '0'

String(0) will convert the number (0) into a string ('0').

A shorter, but less clear, form:

'' + 0 === '0'