DEV Community

Discussion on: 8 JavaScript Tips & Tricks That No One Teaches 🚀

Collapse
 
ychanov profile image
Yavor Chanov

Hi, thanks for the article.
I think there is a small mistake in the "Number to string/string to number" part...
The example for converting string to number is:
let num = "4"
let stringNumber = Number(s); //doesn't that have to be Number(num);?

Collapse
 
garvitmotwani profile image
Garvit Motwani

Welcome and Noted!!

Some comments have been hidden by the post's author - find out more