From 15fa9643795a3cbca85362765f04b511be8de699 Mon Sep 17 00:00:00 2001 From: PsychoBilly Date: Mon, 20 Feb 2023 10:22:52 +0100 Subject: [PATCH] Classes Names and Methods naming conventions + Classes Names and Methods naming conventions precision. --- 1-js/09-classes/01-class/article.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/1-js/09-classes/01-class/article.md b/1-js/09-classes/01-class/article.md index 135d24929b..0108d75666 100644 --- a/1-js/09-classes/01-class/article.md +++ b/1-js/09-classes/01-class/article.md @@ -27,6 +27,8 @@ class MyClass { Then use `new MyClass()` to create a new object with all the listed methods. +Class names should be nouns in UpperCamelCase, and Methods should be verbs in lowerCamelCase by convention. + The `constructor()` method is called automatically by `new`, so we can initialize the object there. For example: