DEV Community

Discussion on: how on earth does this work

Collapse
 
jonrandy profile image
Jon Randy 🎖️

It's actually quite simple, it's just taking advantage of the implicit type conversions JS does behind the scenes. It is explained pretty well here

Collapse
 
pandademic profile image
Pandademic

thank you!