Naming Conventions

nhannguyendevjs

Nhan Nguyen

Posted on May 9, 2024

Naming Conventions

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:

πŸ’– πŸ’ͺ πŸ™… 🚩
nhannguyendevjs
Nhan Nguyen

Posted on May 9, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related