diff --git a/challenges/02-javascript-algorithms-and-data-structures/es6.json b/challenges/02-javascript-algorithms-and-data-structures/es6.json index 11a52afc96..7e65a4f252 100644 --- a/challenges/02-javascript-algorithms-and-data-structures/es6.json +++ b/challenges/02-javascript-algorithms-and-data-structures/es6.json @@ -34,14 +34,13 @@ "Because this behavior does not throw an error, searching and fixing bugs becomes more difficult.
", "A new keyword called let was introduced in ES6 to solve this potential issue with the var keyword.", "If you were to replace var with let in the variable declarations of the code above, the result would be an error.", - "
let camper = 'James';
let camper = 'David'; // throws an error
", + "
let camper = 'James';
let camper = 'David'; // throws an error
", "This error can be seen in the console of your browser.", - "So unlike var, when using let, a variable with the same name can only be declared once.", + "So unlike var, when using let, a variable with the same name can only be declared once.", "Note the \"use strict\". This enables Strict Mode, which catches common coding mistakes and \"unsafe\" actions. For instance:", "
\"use strict\";
x = 3.14; // throws an error because x is not declared
", "
", - "Update the code so it only uses the let keyword.", - "Note
Remember that since let prevents variables from being overridden, you will need to remove one of the declarations entirely." + "Update the code so it only uses the let keyword." ], "challengeSeed": [ "var catName;", @@ -710,7 +709,6 @@ "Refactor the function setGear inside the object bicycle to use the shorthand syntax described above." ], "challengeSeed": [ - "// change code below this line", "const bicycle = {", " gear: 2,", @@ -954,8 +952,8 @@ "head": [ "window.require = function(str) {", "if (str === 'math_functions') {", - "return function(a, b) {", - "return a - b;", + "return function(a, b) {", + "return a - b;", "}}};" ], "challengeSeed": [ @@ -971,4 +969,4 @@ "translations": {} } ] -} +} \ No newline at end of file