DEV Community

Discussion on: JavaScript is almost pythonic

Collapse
 
elarcis profile image
Elarcis • Edited

Or as an alternative, String(x), which does exactly the same thing, except if x is null or undefined, then it produces 'null' or 'undefined' instead of throwing an error.