---
title: "Discussion on \"Javascript Tips and Tricks\" | Hashnode"
description: "Discussion on \"Javascript Tips and Tricks\". Javascript Tips and Tricks"
url: "https://hashnode.com/posts/javascript-tips-and-tricks/60843d02e1555b2a98aa9d0a"
---

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

Discussion

# [Javascript Tips and Tricks](https://jesssica.hashnode.dev/javascript-tips-and-tricks?utm_source=hashnode&utm_medium=feed)

Javascript Tips and Tricks

Apr 24, 2021 · 3 min read · jesssica.hashnode.dev  
Read the article

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

## Written by

[Jessica Carter](https://hashnode.com/@jesssica)

@jesssica · New Mexico, US

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

I code and dream. About Life and Health

## Responses 9

Markdown supported · ⌘↵ to post

[Nate Sire](https://hashnode.com/@natesire)

[May 2, 2021](https://hashnode.com/posts/javascript-tips-and-tricks/60843d02e1555b2a98aa9d0a/comment/608e9ee6a3716542f3640349)

Optional chaining is essentially the equivalent of null object pattern. It's one reason chaining is forbidden in OOP... Law of Demeter.

[Joel D Souza](https://hashnode.com/@reflexgravity)

[Apr 26, 2021](https://hashnode.com/posts/javascript-tips-and-tricks/60843d02e1555b2a98aa9d0a/comment/60866924e1555b2a98aac7b4)

Nice and knowledgeable article.

But I guess the markdown code is broken. ![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1619421395364/FziXMVTEB.png)

[Catalin Pit](https://hashnode.com/@Catalinpit)

[Apr 26, 2021](https://hashnode.com/posts/javascript-tips-and-tricks/60843d02e1555b2a98aa9d0a/comment/6086549fe1555b2a98aac386)

Great article! By the way, the Twitter link doesn't seem to work! 😁

[Hemant Joshi](https://hashnode.com/@mayhemant)

[Apr 25, 2021](https://hashnode.com/posts/javascript-tips-and-tricks/60843d02e1555b2a98aa9d0a/comment/60852c6ee1555b2a98aaae67)

Optional Chaining is a game changer.

Also a typo there you made with Declaring Array.

[Lépine Kong](https://hashnode.com/@GrafcetOnline)

[Apr 25, 2021](https://hashnode.com/posts/javascript-tips-and-tricks/60843d02e1555b2a98aa9d0a/comment/60850586e1555b2a98aaa94c)

Good but beware mistypo in reduce example : {1, 2,3,4} instead of \[1, 2,3,4\]

[Jessica Carter](https://hashnode.com/@jesssica)

[Apr 25, 2021](https://hashnode.com/posts/javascript-tips-and-tricks/60843d02e1555b2a98aa9d0a/comment/60850586e1555b2a98aaa94c#reply-608524d970758d2ac1546a87)

Thanks, fixed it.

[Victor Adedokun](https://hashnode.com/@oyommy)

[Apr 25, 2021](https://hashnode.com/posts/javascript-tips-and-tricks/60843d02e1555b2a98aa9d0a/comment/6085039a70758d2ac1546568)

Hi Jessica, why use var (instead of let/const) curly braces (instead of square brackets) while declaring an array? I'm curious

[Jessica Carter](https://hashnode.com/@jesssica)

[Apr 25, 2021](https://hashnode.com/posts/javascript-tips-and-tricks/60843d02e1555b2a98aa9d0a/comment/6085039a70758d2ac1546568#reply-608524e6e1555b2a98aaad6f)

Great Catch, Thanks a lot just fixed it.

[Guru Basavaraj BV](https://hashnode.com/@GuruBV)

[Apr 25, 2021](https://hashnode.com/posts/javascript-tips-and-tricks/60843d02e1555b2a98aa9d0a/comment/6084db8770758d2ac1546295)

Thanks for sharing the helpful content, As always.

All the Very best!

[Jessica Carter](https://hashnode.com/@jesssica)

[Apr 25, 2021](https://hashnode.com/posts/javascript-tips-and-tricks/60843d02e1555b2a98aa9d0a/comment/6084db8770758d2ac1546295#reply-6084dc94e1555b2a98aaa66f)

Thanks a lot❤️

[Taiwo Awe](https://hashnode.com/@taiwoawe)

[Apr 24, 2021](https://hashnode.com/posts/javascript-tips-and-tricks/60843d02e1555b2a98aa9d0a/comment/608491ac70758d2ac1545f06)

Very nicely written article. Your points were clearly articulated. Kudos Jessica

[Jessica Carter](https://hashnode.com/@jesssica)

[Apr 25, 2021](https://hashnode.com/posts/javascript-tips-and-tricks/60843d02e1555b2a98aa9d0a/comment/608491ac70758d2ac1545f06#reply-6084dc9ee1555b2a98aaa675)

Thanks a lot ❤️
