|
|
@@ -271,7 +271,7 @@ someElement.style.width = `${aWidth + bWidth}px`;
|
|
|
<p>While you're welcome to format your code any way you chose there is at least one
|
|
|
convention you should be aware of. Variables, function names, method names, in
|
|
|
JavaScript are all lowerCasedCamelCase. Constructors, the names of classes are
|
|
|
-CapitalizedCamelCase. If you follow this rule you code will match most other
|
|
|
+CapitalizedCamelCase. If you follow this rule your code will match most other
|
|
|
JavaScript. Many <a href="https://eslint.org">linters</a>, programs that check for obvious errors in your code,
|
|
|
will point out errors if you use the wrong case since by following the convention
|
|
|
above they can know when you're using something incorrectly.</p>
|