DEV Community

Discussion on: 5 Ways to Convert a Value to String in JavaScript

Collapse
 
sunnysingh profile image
Sunny Singh

Thanks for sharing these comparisons. I commonly use toString(), but it makes way more sense to handle null scenarios with String(). Loves your posts (including the IG ones) as always Samantha!

Collapse
 
samanthaming profile image
Samantha Ming

Thanks for your support Sunny πŸ˜ŠπŸ‘