GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Notizen

Arrow functions

James Drummond Javascript A-Level Englisch 1 Seite

Inhalt der Notizen (1)

Seite 1

The syntax is like:

[1, 2, 3].map(num => num * 2)

//

Which is equivalent to:

[1, 2, 3].map(function (num) { return num * 2 })

//

So this is just shorthand for writing a callback.

Arrow functions are just for expressions:

- They do not have this or arguments

Informationen

Beschreibung
A-Level Javascript Notiz am Arrow functions, erstellt von James Drummond am 04/09/2015.
Erstellt von
James Drummond · Sep 2015
Aktualisiert
2 Aug 2016
Aufrufe
7
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck