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

Test

3) JavaScript - Advanced Topics (Checkpoints 18-21)

Sanny Lin 6 preguntas 5,0 (1 valoración)

Hacer el test

Este test tiene tiempo límite, así que se abre en el reproductor de siempre.

Preguntas del test (6)

  1. 1Which of these is an object constructor?
    1. Afunction Bunny(type) {
      this.type = type;
      }
    2. Bvar Bunny = {type: ""chocolate""};
    3. CBunny.create();
    4. DObject.create(Bunny);
  2. 2function Star() { // function body };
    var andromeda = new Star();

    How might you visually depict the prototype chain of `andromeda`?
    1. Aandromeda --> Star.prototype --> Object.prototype --> null
    2. Bandromeda --> Star --> Function.prototype --> Object.prototype --> null
    3. Candromeda --> Star.prototype -> Function.prototype --> Object.prototype --> null
    4. Dandromeda --> Star --> Object.prototype --> null
  3. 3var numbers = [4, 84, 9, 7, 33];
    numbers.length; // returns 5
    numbers.length = 4;

    Given the code above, what will `numbers.length` return?
    1. A4
    2. B5
    3. Cundefined
    4. Dnull
  4. 4x = ["y", "z"];
    console.log(typeof x);

    What prints to the console?
    1. A"object"
    2. B"array"
    3. Cnull
    4. Dundefined
  5. 5var myString = "This is a string!";
    myString.length;

    True or false: In this example, `length` is an own property on `myString`.
    1. AVerdadero
    2. BFalso
  6. 6var protoFrog = { // some properties };
    var greenFrog = Object.create(protoFrog);

    How might you visually depict the prototype chain of `greenFrog`?
    1. AgreenFrog --> protoFrog --> Object.prototype --> null
    2. BgreenFrog --> protoFrog.prototype --> Object.prototype --> null
    3. CgreenFrog --> Object.prototype --> null
    4. Dnone of these

Información

Descripción
Test sobre 3) JavaScript - Advanced Topics (Checkpoints 18-21), creado por Sanny Lin el 24/03/2016.
Idioma
English
Visitas
15
Etiquetas
100
Valoración
5,0 de 5 · 1 valoración
Valora este test
Valora este test

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?