Naming Conventions

ยท

1 min read

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:

ย