GoConqr has a new look! Let us know what you think.

Quiz

JavaScript Review Part 1

Scot Pfleghaar 200 questions

Take the quiz

This quiz has question types that open in the usual player.

Questions in this 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. ATrue
    2. BFalse
  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

Information

Description
Coding Quiz on JavaScript Review Part 1, created by Scot Pfleghaar on 10/08/2017.
Language
English
Views
35
Tags
coding
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?