O GoConqr está de visual novo! Conte para nós o que você achou.

Quiz

JavaScript Review Part 1

Scot Pfleghaar 200 perguntas

Fazer o quiz

Este quiz tem tipos de pergunta que abrem no player de sempre.

Perguntas do 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. AVerdadeiro
    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

Informações

Descrição
Coding Quiz sobre JavaScript Review Part 1, criado por Scot Pfleghaar em 10-08-2017.
Idioma
English
Visualizações
35
Etiquetas
coding
Avaliação
Ainda sem avaliações
Avalie este quiz
Avalie este quiz

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?