Naming Conventions

Nhan Nguyen
May 9, 2024

--

Let’s embark on a journey to explore where to employ conventions effectively:

➖ PascalCase 👉 Classes and Methods

➖ camelCase 👉 variable and function names

➖ snake_case 👉 file names and variable identifiers

➖ kebab-case 👉 HTML attributes and CSS classes

➖ UPPERCASE 👉 CONSTANTS and ENUMERATIONS

➖ UPPER_SNAKE_CASE 👉 CONSTANTS and ENVIRONMENT_VARIABLES

By understanding where each convention thrives, we empower ourselves to craft code that functions flawlessly and communicates with elegance and finesse.

I hope you found it helpful. Thanks for reading. 🙏

Let’s get connected! You can find me on:

--

--