You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On day 15, you mentioned that class names should be CamelCase
To define a class in JavaScript we need the keyword class , the name of a class in CamelCase and block code(two curly brackets). Let us create a class name Person.
which is not true, it should be Pascal Case, aka Upper Camel Case, not Camel Case. examples also follow the Pascal Case format.
The text was updated successfully, but these errors were encountered:
iHapiW
changed the title
Class Names are Pascal Case not Camel Case!
Class Names are PascalCase not CamelCase!
Jan 18, 2024
I think there is no strict restriction for class names to follow a specific naming convention. We can use any of the above mentioned, what's more important is to be consistent to enhance readability and maintainability.
On day 15, you mentioned that class names should be CamelCase
which is not true, it should be Pascal Case, aka Upper Camel Case, not Camel Case. examples also follow the Pascal Case format.
The text was updated successfully, but these errors were encountered: