Understanding Case Sensitivity in Variables
This commit is contained in:
committed by
SaintPeter
parent
69707990ff
commit
32add4a74a
@ -219,9 +219,10 @@
|
|||||||
"title": "Understanding Case Sensitivity in Variables",
|
"title": "Understanding Case Sensitivity in Variables",
|
||||||
"description": [
|
"description": [
|
||||||
"In Javascript all variables and function names are case sensitive. This means that capitalization matters.",
|
"In Javascript all variables and function names are case sensitive. This means that capitalization matters.",
|
||||||
"<code>MYVAR</code> is not the same as <code>MyVar</code> nor <code>myvar</code>. It is possible to have mulitpe distinct variables with the same name but different capitalization. It is strongly reccomended that for sake of clarity you <em>do not</em> use this language feature.",
|
"<code>MYVAR</code> is not the same as <code>MyVar</code> nor <code>myvar</code>. It is possible to have multiple distinct variables with the same name but different casing. It is strongly reccomended that for sake of clarity you <em>do not</em> use this language feature.",
|
||||||
"<h4>Best Practice</h4><div class=\"bestpractice\">Variables in Javascript should use camelCase. In camelCase, variables made of multiple words have the first word in all lowercase and the first letter of each subsequent word capitalized.</div>",
|
"<h4>Best Practice</h4><div class=\"bestpractice\">Write variable names in Javascript in camelCase. In camelCase, variable names made of multiple words have the first word in all lowercase and the first letter of each subsequent word(s) capitalized.</div>",
|
||||||
"<strong>Examples:</strong><blockquote>var someVariable;</br />var anotherVariableName;</br />var thisVariableNameIsTooLong;</blockquote>",
|
" ",
|
||||||
|
"<strong>Examples:</strong><blockquote>var someVariable;<br>var anotherVariableName;<br>var thisVariableNameIsTooLong;</blockquote>",
|
||||||
"<h4>Instructions</h4>",
|
"<h4>Instructions</h4>",
|
||||||
"Correct the variable assignements so their names match their variable declarations above."
|
"Correct the variable assignements so their names match their variable declarations above."
|
||||||
],
|
],
|
||||||
|
Reference in New Issue
Block a user