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

Karteikarten

Destructuring in ES6

Rimika Chaudhury Engineering Englisch 6 Karten

Karten in diesem Stapel (6)

  1. 1In ES6, var{ species, sound } = animalis equivalent to var species = animal.species and var sound = animal.sound, in ES5
  2. 2Option objectssingle object passed to a function
    example: ajax function in jQuery
  3. 3One drawback of the options object in ES5hard to comprehend the purpose of the function that uses it
  4. 4var { species, sound} = options ; species = species || 'animal'assigns "species" as an optional property by assigning a default value to it
  5. 5Destructuring allowsassignment of default values in the method signature
  6. 6Common use-case for destructuringeasier to deal with option objects

Informationen

Beschreibung
Engineering Karteikarten am Destructuring in ES6, erstellt von Rimika Chaudhury am 18/06/2018.
Erstellt von
Rimika Chaudhury
Aufrufe
2
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck