Skip to content

Arrow functions, the basics #162

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Prev Previous commit
Update 1-js/02-first-steps/17-arrow-functions-basics/article.md
Co-authored-by: Andrea  <[email protected]>
  • Loading branch information
pasor1 and longo-andrea authored Jan 9, 2021
commit ac0406ce8a857559f64be3fb41ea8cc0d23c6855
2 changes: 1 addition & 1 deletion 1-js/02-first-steps/17-arrow-functions-basics/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,4 @@ Le arrow functions sono utili per azioni su una riga sola. Possono essere scritt

1. Senza parentesi graffe: `(...args) => expression` -- la parte destra è un'espressione: la funzione la valuta e restituisce il risultato.
2. Con parentesi graffe: `(...args) => { body }` -- le parentesi ci permettono di scrivere comandi multipli all'interno della funzione, ma abbiamo bisogno di dichiarare esplicitamente
`return` affichè sia ritornato qualcosa.
`return` affinché sia ritornato qualcosa.