diff --git a/challenges/02-javascript-algorithms-and-data-structures/es6.json b/challenges/02-javascript-algorithms-and-data-structures/es6.json index f09ca0fe03..11a52afc96 100644 --- a/challenges/02-javascript-algorithms-and-data-structures/es6.json +++ b/challenges/02-javascript-algorithms-and-data-structures/es6.json @@ -37,6 +37,8 @@ "
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.", + "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."