JavaScript is a loosely typed language, meaning we don't have to explicitly specify types of variables. JavaScript also freely type-converts values into a type depending on the context of their use. In this article, I gathered some JavaScript tips and tricks that I believe can make you a better JavaScript developer.

4m read timeFrom blog.michaelkaren.dev
Post cover image
Table of contents
1. Converting to numbers2. Managing objects3. Swapping two variables4. Setting defaults5. Random number from interval6. Remove array duplicates7. Dynamic property names8. Bonus trick
2 Comments

Sort: