Update index.md (#24174)

Add New Syntax one line example
This commit is contained in:
Stefan
2018-10-21 07:35:33 +01:00
committed by Randell Dawson
parent a2470e8544
commit ed1cdbd6e1

View File

@ -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.