Skip to content

Commit

Permalink
Update index.md (freeCodeCamp#24174)
Browse files Browse the repository at this point in the history
Add New Syntax one line example
  • Loading branch information
stefanscript authored and RandellDawson committed Oct 21, 2018
1 parent a2470e8 commit ed1cdbd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions guide/english/javascript/es6/arrow-functions/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ function oldOne() {
const newOne = () => {
console.log("Hello World..!");
}

// Or on one line
const newOne = () => console.log("Hello World..!");
```

The new syntax may be confusing a little bit. But I will try to explain the syntax.
Expand Down

0 comments on commit ed1cdbd

Please sign in to comment.