---
title: "Discussion on \"7 Useful JavaScript Tricks and Tips\" | Hashnode"
description: "Discussion on \"7 Useful JavaScript Tricks and Tips\". You Will Be Surprised By Number 9!"
url: "https://hashnode.com/posts/7-useful-javascript-tricks-and-tips/6098c0041ea29f2c341e204d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [7 Useful JavaScript Tricks and Tips](https://blog.michaelkaren.dev/7-useful-javascript-tricks-and-tips?utm_source=hashnode&utm_medium=feed)

You Will Be Surprised By Number 9!

May 10, 2021 · 6 min read · blog.michaelkaren.dev  
Updated May 25, 2021  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#frontend-development](https://hashnode.com/tag/frontend-development)

## Written by

[Michael Karén](https://hashnode.com/@melcor76)

@melcor76 · Oslo, Norway

  
[View profile](https://hashnode.com/@melcor76)

Frontend Architect • JavaScript Enthusiast • Blogger

## Responses 7

Markdown supported · ⌘↵ to post

[Yash Tiwari](https://hashnode.com/@Coursesity)

[Sep 1, 2021](https://hashnode.com/posts/7-useful-javascript-tricks-and-tips/6098c0041ea29f2c341e204d/comment/612fdddbc21ac123ca37819c)

Interesting approach to [learn JavaScript](https://blog.coursesity.com/popular-javascript-frameworks/) to become a better JavaScript developer! Also, 7 ate 9 was nice xD

[Kamaboko Gonpachiro](https://hashnode.com/@gonpachiro)

[May 14, 2021](https://hashnode.com/posts/7-useful-javascript-tricks-and-tips/6098c0041ea29f2c341e204d/comment/609de2ff47373d4cb05623c3)

Really useful

[Michael Karén](https://hashnode.com/@melcor76)

[May 14, 2021](https://hashnode.com/posts/7-useful-javascript-tricks-and-tips/6098c0041ea29f2c341e204d/comment/609de2ff47373d4cb05623c3#reply-609e263547373d4cb0562ac8)

Thank you for taking the time to comment [Dhev Sabharish](https://hashnode.com/@dhev02)! :)

[Pankaj Patel](https://hashnode.com/@pankajpatel)

[May 11, 2021](https://hashnode.com/posts/7-useful-javascript-tricks-and-tips/6098c0041ea29f2c341e204d/comment/609a48fc1ea29f2c341e467c)

Great set of Tips. A handy guide to keep nearby.

Thanks for writing.

Especially, 7 ate 9; removed all the tips' stress immediately.

[Michael Karén](https://hashnode.com/@melcor76)

[May 11, 2021](https://hashnode.com/posts/7-useful-javascript-tricks-and-tips/6098c0041ea29f2c341e204d/comment/609a48fc1ea29f2c341e467c#reply-609a603421068818a5c65b32)

Thank you [Pankaj Patel](https://hashnode.com/@pankajpatel)!

I'm glad the joke was not only funny in my head.

[pankaj pathak](https://hashnode.com/@p4pathak)

[May 10, 2021](https://hashnode.com/posts/7-useful-javascript-tricks-and-tips/6098c0041ea29f2c341e204d/comment/609976f521068818a5c64841)

However I loved this read. Not a pure js development fella but someday I'll need this.

[Michael Karén](https://hashnode.com/@melcor76)

[May 11, 2021](https://hashnode.com/posts/7-useful-javascript-tricks-and-tips/6098c0041ea29f2c341e204d/comment/609976f521068818a5c64841#reply-609a616321068818a5c65b68)

Thanks [pankaj pathak](https://hashnode.com/@p4pathak)!

JavaScript is everywhere so you never know when you will need it.

[Musa Danjuma](https://hashnode.com/@shamxeed)

[May 10, 2021](https://hashnode.com/posts/7-useful-javascript-tricks-and-tips/6098c0041ea29f2c341e204d/comment/60996a661ea29f2c341e352d)

Learns a lot... thank you so much for sharing!!!

[Michael Karén](https://hashnode.com/@melcor76)

[May 11, 2021](https://hashnode.com/posts/7-useful-javascript-tricks-and-tips/6098c0041ea29f2c341e204d/comment/60996a661ea29f2c341e352d#reply-609a612e1ea29f2c341e48a9)

Thank you for taking the time to comment [Musa Danjuma](https://hashnode.com/@shamxeed)!

[Musa Danjuma](https://hashnode.com/@shamxeed)

[May 11, 2021](https://hashnode.com/posts/7-useful-javascript-tricks-and-tips/6098c0041ea29f2c341e204d/comment/60996a661ea29f2c341e352d#reply-609b17f6c798bd79ff8ec6dc)

You're always welcome [Michael Karén](https://hashnode.com/@melcor76)!! ☺️☺️

[Saquib Hussain](https://hashnode.com/@saquibxhussain)

[May 10, 2021](https://hashnode.com/posts/7-useful-javascript-tricks-and-tips/6098c0041ea29f2c341e204d/comment/6098f28221068818a5c63ba4)

Under what circumstances would we need to remove array duplicates? Does it really affect the code a lot?

[Michael Karén](https://hashnode.com/@melcor76)

[May 10, 2021](https://hashnode.com/posts/7-useful-javascript-tricks-and-tips/6098c0041ea29f2c341e204d/comment/6098f28221068818a5c63ba4#reply-6098f6681ea29f2c341e295b)

If you want to present a list to a user and you have duplicates then it makes sense to first filter the list.

I mostly wanted to show this tip because the Set object is new with ES6 and is good to be aware of.

[Saquib Hussain](https://hashnode.com/@saquibxhussain)

[May 10, 2021](https://hashnode.com/posts/7-useful-javascript-tricks-and-tips/6098c0041ea29f2c341e204d/comment/6098f28221068818a5c63ba4#reply-60990c9d1ea29f2c341e2bc6)

Yeah, true. That makes more sense now! Thanks for the prompt response, buddy. By the way, would you be open to writing Developer content for businesses? Let me know. [Michael Karén](https://hashnode.com/@melcor76)

[Michael Karén](https://hashnode.com/@melcor76)

[May 11, 2021](https://hashnode.com/posts/7-useful-javascript-tricks-and-tips/6098c0041ea29f2c341e204d/comment/6098f28221068818a5c63ba4#reply-609a61dc21068818a5c65b73)

Thanks for the offer [Saquib Hussain](https://hashnode.com/@saquibxhussain) but I'm mostly writing for fun when I have the time.

[Edidiong Asikpo (Didi)](https://hashnode.com/@didicodes)

[May 10, 2021](https://hashnode.com/posts/7-useful-javascript-tricks-and-tips/6098c0041ea29f2c341e204d/comment/6098e1991ea29f2c341e26d1)

Lol, I see what you did there with number 9. 😂

Anyway, this was a very insightful read [Michael Karén](https://hashnode.com/@melcor76). Thanks for sharing.

[Michael Karén](https://hashnode.com/@melcor76)

[May 10, 2021](https://hashnode.com/posts/7-useful-javascript-tricks-and-tips/6098c0041ea29f2c341e204d/comment/6098e1991ea29f2c341e26d1#reply-6098e8e221068818a5c63a77)

Thank you [Edidiong Asikpo](https://hashnode.com/@didicodes) for your kind words!
