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:
Hashnode: https://nhannguyen.hashnode.dev/
X (formerly Twitter): https://twitter.com/nhannguyendevjs/
Buy Me a Coffee: https://www.buymeacoffee.com/nhannguyendevjs