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

Quiz

JavaScript Review Part 1

Scot Pfleghaar 200 Fragen

Quiz starten

Dieses Quiz enthält Fragetypen, die sich im gewohnten Player öffnen.

Fragen in diesem Quiz (200)

  1. 1Arrow functions don’t require parentheses when the function has ____.
    1. AOne parameter
    2. BTwo arguments
    3. CZero arguments
    4. DAll of the answers
  2. 2Given a function that has two default parameters. You want to keep the default value of the first parameter but override the default value of the second parameter. When calling the function, what value should the first parameter be?
    1. ANull
    2. BUndefined
    3. C0
    4. Dfalse
  3. 3Which of the following functions correctly implements default parameters?
    1. AFunction myFunction(name: 'Ken') { … }
    2. BFunction myFunction(name = 'Ken') { ... }
    3. CFunction myFunction() { let name = args[0] || 'Ken'; … }
    4. DAny of these.
  4. 4An arrow function is bound to its _____ scope.
    1. ASister
    2. BChild
    3. CParent
    4. DPrevious
  5. 5Default values can only be strings.
    1. AFalse. The values can be strings, booleans, objects, arrays, or functions.
    2. BTrue. If you pass a value that's not a string, the interpreter will throw an exception.
  6. 6Which of the following is using a spread operator?
    1. Alet [toy1, toy2, toy3] = toys;
    2. Bfunction makeToy(type, ...options) { … }
    3. Clet toys = [...cars, ...trucks, ...dolls, ...blocks];
    4. DAll of These
  7. 7Which of the following is using a rest parameter?
    1. Alet cars = [...honda, ...toyota, ...chevrolet];
    2. Bfunction buildCar(make, model, ...options) { … }
    3. Clet {hood, transmission, engine} = car;
    4. DAll of these
  8. 8You can use the spread operator and destructuring together.
    1. ARichtig
    2. BFalsch
  9. 9_______ is a way to reference object or array values with variables.
    1. ARest Parameters
    2. BObject Composition
    3. CPromises
    4. DDestructuring
  10. 10The spread operator can be used instead of _____.
    1. AArray.concat
    2. BArray.split
    3. CArray.forEach
    4. DObject.create

Informationen

Beschreibung
Coding Quiz am JavaScript Review Part 1, erstellt von Scot Pfleghaar am 10/08/2017.
Sprache
English
Aufrufe
35
Schlagwörter
coding
Bewertung
Noch keine Bewertungen
Bewerte dieses Quiz
Bewerte dieses Quiz

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck