From c50cc4eb1d1d79f12488fd2e2ba9aa7f55c79e97 Mon Sep 17 00:00:00 2001 From: Niraj Nandish Date: Sat, 25 Aug 2018 22:57:42 +0400 Subject: [PATCH] fix(challenges): missing space in code example --- .../02-javascript-algorithms-and-data-structures/es6.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/challenges/02-javascript-algorithms-and-data-structures/es6.json b/challenges/02-javascript-algorithms-and-data-structures/es6.json index e2dc57258..e0bf974cc 100644 --- a/challenges/02-javascript-algorithms-and-data-structures/es6.json +++ b/challenges/02-javascript-algorithms-and-data-structures/es6.json @@ -303,7 +303,7 @@ "ES6 provides us with the syntactic sugar to not have to write anonymous functions this way. Instead, you can use arrow function syntax:", "
const myFunc = () => {
  const myVar = \"value\";
  return myVar;
}
", "When there is no function body, and only a return value, arrow function syntax allows you to omit the keyword return as well as the brackets surrounding the code. This helps simplify smaller functions into one-line statements:", - "
const myFunc= () => \"value\"
", + "
const myFunc = () => \"value\"
", "This code will still return value by default.", "
", "Rewrite the function assigned to the variable magic which returns a new Date() to use arrow function syntax. Also make sure nothing is defined using the keyword var."