---
title: "Discussion on \"Write JavaScript like a pro\" | Hashnode"
description: "Discussion on \"Write JavaScript like a pro\". Rip off the coding convention band-aid with this guide on the best JavaScript practices to write JavaScript like a pro"
url: "https://hashnode.com/posts/write-javascript-like-a-pro/63a4e8fdc041627d5b2676b4"
---

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

Discussion

# [Write JavaScript like a pro](https://yuricodesbot.hashnode.dev/write-javascript-like-a-pro?utm_source=hashnode&utm_medium=feed)

Rip off the coding convention band-aid with this guide on the best JavaScript practices to write JavaScript like a pro

Dec 22, 2022 · 3 min read · yuricodesbot.hashnode.dev  
Read the article

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

## Written by

[Yuri](https://hashnode.com/@YuriCodesBot)

@YuriCodesBot

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

Twitter: @Yuricodesbot | Self/Community Taught | Writer | Let's learn together

I'm self/community-taught from Law to now Full-Stack Developer! Sharing my notes and knowledge hoping i help this lovely community. Learn with me! :)

## Responses 3

Markdown supported · ⌘↵ to post

[Dylan Dizon](https://hashnode.com/@dylandizon)

[Dec 26, 2022](https://hashnode.com/posts/write-javascript-like-a-pro/63a4e8fdc041627d5b2676b4/comment/63a9e41fb1011ed9ec6d5d1e)

With objects and arrays, since they are references, you can technically change their contents even if you declare them with const.

Using const is just a better practice to indicate that those objects or arrays should not be modified.

[Mads Akselsen](https://hashnode.com/@MadsAkselsen)

[Dec 29, 2022](https://hashnode.com/posts/write-javascript-like-a-pro/63a4e8fdc041627d5b2676b4/comment/63a9e41fb1011ed9ec6d5d1e#reply-63adfe210b31a238935e6c5c)

Yeah, properties on const object can be changed. It's common practice in the company im working currently.

But Object.freeze() can be used to make properties non-writeable. I think it can be used on arrays as well :-)

[Deni Tech](https://hashnode.com/@DeniCodes)

[Dec 23, 2022](https://hashnode.com/posts/write-javascript-like-a-pro/63a4e8fdc041627d5b2676b4/comment/63a5c1e0b1011ed9ec6cb2af)

hola necesito laptop por favor jajajaja…vale

[Yuri](https://hashnode.com/@YuriCodesBot)

[Dec 24, 2022](https://hashnode.com/posts/write-javascript-like-a-pro/63a4e8fdc041627d5b2676b4/comment/63a5c1e0b1011ed9ec6cb2af#reply-63a667b0b1011ed9ec6cc43b)

lol
