note:
for consistancy i will keep the same example.
1. camelCase
//userDate
//firstName
2. snake_case
//user_name
//first_name
3. PascalCase
//UserName
//FirstName
4. kebab-case
This style mostly used as ID name and classes in html
.
//user-name
//first-name
Top comments (5)
kebab-case
though most popular programming languages does not allow dashing in naming
That's correct. It's most often used in CSS class names, and HTML attribute names
ok corrected.
ok i will remember that ty