---
title: "Discussion on \"JavaScript naming conventions\" | Hashnode"
description: "Discussion on \"JavaScript naming conventions\". JavaScript has a standard naming convention when naming variables, functions, and classes. Naming conventions improve code readability and make code maintenance much easier. When writing a program, you need to ask yourself whether your program will m..."
url: "https://hashnode.com/posts/javascript-naming-conventions/609e758147373d4cb0563715"
---

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

Discussion

# [JavaScript naming conventions](https://tracy.hashnode.dev/javascript-naming-conventions?utm_source=hashnode&utm_medium=feed)

JavaScript has a standard naming convention when naming variables, functions, and classes. Naming conventions improve code readability and make code maintenance much easier. When writing a program, you need to ask yourself whether your program will m...

May 14, 2021 · 3 min read · tracy.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#codenewbies](https://hashnode.com/tag/codenewbies)
-   [#naming](https://hashnode.com/tag/naming)
-   [#best-practices](https://hashnode.com/tag/best-practices)

## Written by

[Tracy Nuwagaba](https://hashnode.com/@tracycod3r)

@tracycod3r

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

All things related to data

## Responses 4

Markdown supported · ⌘↵ to post

[Phillippe Santana](https://hashnode.com/@phillippelevidad)

[Aug 31, 2022](https://hashnode.com/posts/javascript-naming-conventions/609e758147373d4cb0563715/comment/630f88e675af73ad1f061a75)

Nice article, [Tracy Nuwagaba](https://hashnode.com/@tracycod3r)!

I think you truly capture the essence of the importance of naming when you mention we must make it easy for us and others to understand what the code is all about.

In that regard, I would advise people to look for style guides that are widely adopted, like [this one by Google](https://google.github.io/styleguide/tsguide.html).

And I have my own contribution about [how enums should be named](https://phillcode.io/enums-should-always-be-singular). I hope it helps people to write better code, one variable name at a time 😉

[Tracy Nuwagaba](https://hashnode.com/@tracycod3r)

[Sep 1, 2022](https://hashnode.com/posts/javascript-naming-conventions/609e758147373d4cb0563715/comment/630f88e675af73ad1f061a75#reply-63104cae56df9e8e5025b1b4)

Thank you Phillippe

[Hasnain Mehadi](https://hashnode.com/@Syed-110)

[May 15, 2021](https://hashnode.com/posts/javascript-naming-conventions/609e758147373d4cb0563715/comment/609fdb45a46b027fced545e5)

Thanks for writing this article.

[Tracy Nuwagaba](https://hashnode.com/@tracycod3r)

[May 15, 2021](https://hashnode.com/posts/javascript-naming-conventions/609e758147373d4cb0563715/comment/609fdb45a46b027fced545e5#reply-60a0239fb66a0b15ebfc8589)

Thanks Mehadi

[Favourite Jome](https://hashnode.com/@Favourite)

[May 15, 2021](https://hashnode.com/posts/javascript-naming-conventions/609e758147373d4cb0563715/comment/609fa7c1ebf598658125ae00)

Thanks for sharing Tracy!

[Tracy Nuwagaba](https://hashnode.com/@tracycod3r)

[May 15, 2021](https://hashnode.com/posts/javascript-naming-conventions/609e758147373d4cb0563715/comment/609fa7c1ebf598658125ae00#reply-609fb0b6ebf598658125af6b)

Thanks Jerome

[Ayodele Samuel Adebayo](https://hashnode.com/@unclebigbay)

[May 14, 2021](https://hashnode.com/posts/javascript-naming-conventions/609e758147373d4cb0563715/comment/609e8fb7b684eb4cd52c6ba2)

Nice article [Tracy Nuwagaba](https://hashnode.com/@Tracy), thanks for sharing

[Tracy Nuwagaba](https://hashnode.com/@tracycod3r)

[May 14, 2021](https://hashnode.com/posts/javascript-naming-conventions/609e758147373d4cb0563715/comment/609e8fb7b684eb4cd52c6ba2#reply-609e90fab684eb4cd52c6bcf)

Thanks Samuel
