Skip to content
This repository was archived by the owner on Sep 25, 2019. It is now read-only.

Commit c50cc4e

Browse files
Nirajn2311scissorsneedfoodtoo
authored andcommitted
fix(challenges): missing space in code example
1 parent bc33a03 commit c50cc4e

File tree

1 file changed

+1
-1
lines changed
  • challenges/02-javascript-algorithms-and-data-structures

1 file changed

+1
-1
lines changed

challenges/02-javascript-algorithms-and-data-structures/es6.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@
303303
"ES6 provides us with the syntactic sugar to not have to write anonymous functions this way. Instead, you can use <strong>arrow function syntax</strong>:",
304304
"<blockquote>const myFunc = () => {<br>&nbsp;&nbsp;const myVar = \"value\";<br>&nbsp;&nbsp;return myVar;<br>}</blockquote>",
305305
"When there is no function body, and only a return value, arrow function syntax allows you to omit the keyword <code>return</code> as well as the brackets surrounding the code. This helps simplify smaller functions into one-line statements:",
306-
"<blockquote>const myFunc= () => \"value\"</blockquote>",
306+
"<blockquote>const myFunc = () => \"value\"</blockquote>",
307307
"This code will still return <code>value</code> by default.",
308308
"<hr>",
309309
"Rewrite the function assigned to the variable <code>magic</code> which returns a new <code>Date()</code> to use arrow function syntax. Also make sure nothing is defined using the keyword <code>var</code>."

0 commit comments

Comments
 (0)