¡GoConqr estrena diseño! Cuéntanos qué te parece.

Test

JavaScript Review Part 1

Scot Pfleghaar 200 preguntas

Hacer el test

Este test tiene tipos de pregunta que se abren en el reproductor de siempre.

Preguntas del test (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. AVerdadero
    2. BFalso
  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

Información

Descripción
Coding Test sobre JavaScript Review Part 1, creado por Scot Pfleghaar el 10/08/2017.
Idioma
English
Visitas
35
Etiquetas
coding
Valoración
Aún sin valoraciones
Valora este test
Valora este test

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?