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';", "This error can be seen in the console of your browser.", "So unlike
let camper = 'David'; // throws an error
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
let
keyword.",
"Notelet
prevents variables from being overridden, you will need to remove one of the declarations entirely."