From 32add4a74a962ba4f9abd9c10d546de02d7c2bbc Mon Sep 17 00:00:00 2001 From: Abhisek Pattnaik Date: Thu, 24 Dec 2015 08:15:37 +0530 Subject: [PATCH] Understanding Case Sensitivity in Variables --- .../basic-javascript.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/challenges/01-front-end-development-certification/basic-javascript.json b/challenges/01-front-end-development-certification/basic-javascript.json index 654c9ca438..ed7b654e9e 100644 --- a/challenges/01-front-end-development-certification/basic-javascript.json +++ b/challenges/01-front-end-development-certification/basic-javascript.json @@ -219,9 +219,10 @@ "title": "Understanding Case Sensitivity in Variables", "description": [ "In Javascript all variables and function names are case sensitive. This means that capitalization matters.", - "MYVAR is not the same as MyVar nor myvar. 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 do not use this language feature.", - "

Best Practice

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.
", - "Examples:
var someVariable;
var anotherVariableName;
var thisVariableNameIsTooLong;
", + "MYVAR is not the same as MyVar nor myvar. 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 do not use this language feature.", + "

Best Practice

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.
", + " ", + "Examples:
var someVariable;
var anotherVariableName;
var thisVariableNameIsTooLong;
", "

Instructions

", "Correct the variable assignements so their names match their variable declarations above." ],