diff --git a/seed/challenges/02-javascript-algorithms-and-data-structures/es6.json b/seed/challenges/02-javascript-algorithms-and-data-structures/es6.json index deb4d0c82e..eddfbe0234 100644 --- a/seed/challenges/02-javascript-algorithms-and-data-structures/es6.json +++ b/seed/challenges/02-javascript-algorithms-and-data-structures/es6.json @@ -288,7 +288,7 @@ "
function greeting(name = \"Anonymous\") {
return \"Hello \" + name;
}
console.log(greeting(\"John\")); // Hello John
console.log(greeting()); // Hello Anonymous
", "The default parameter kicks in when the argument is not specified (it is undefined). As you can see in the example above, the parameter name will receive its default value \"Anonymous\" when you do not provide a value for the parameter. You can add default values for as many parameters as you want.", "
", - "Modify the function increment by adding default parameters so it will always return a valid number and it will add 1 to number if value is not specified.", + "Modify the function increment by adding default parameters so that it will add 1 to number if value is not specified.", "Note
Don't forget to use strict mode." ], "challengeSeed": [