️ 6 JavaScript Concepts That Feel Illegal (But Work)
SMRTR summary
JavaScript developers can leverage unusual but valid language features for creative coding. These include the comma operator for one-liners, using with() to manipulate scope, overloading truthiness with valueOf(), creating infinite arrays, and storing state on functions themselves. While some techniques are unconventional, they showcase JavaScript's flexibility and power for advanced developers.
SMRTR provides this summary for quick context. The original article belongs to Dev.to.
Read the original article