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

Quiz

JS Reducido

Nelly Santiago Morales 40 Fragen

Quiz starten

Dieses Quiz hat ein Zeitlimit und öffnet sich deshalb im gewohnten Player.

Fragen in diesem Quiz (40)

  1. 1¿Cuál es el resultado del siguiente código?

    const array = [0,1,2,3,4,5]
    console.log(array.at(-1))
    1. A5
    2. B1
    3. C-1
    4. D0
  2. 2¿Cuál es el resultado del siguiente código?

    console.log(0.2+0.1 === 0.3);
    1. AFALSE
    2. BTRUE
    3. C0.3
    4. DERROR
  3. 3¿Cuál es el resultado del siguiente código?

    isNAN('20');
    1. AFALSE
    2. BTRUE
    3. C20
    4. D"20"
  4. 4¿Qué imprime el siguiente código?
    const writer = {
    name: 'Juan Rulfo',
    country: 'México'
    }
    const anotherWriter = {...writer};
    writer.name = 'Mariano Azuela';
    console.log(anotherWriter);
    1. A{name: 'Juan Rulfo', country: 'México'}
    2. B{writer:{name:'Juan Rulfo',country:'México'}}
    3. C{name: 'Juan Rulfo' , country:'México'}
    4. D{writer:{name:'Mariano Azuela',country:'México'}}
  5. 5const employee = {
    firstName: 'Pedro',
    age: 30
    }
    const street = employee.address?.street;
    console.log(street);

    ¿Cuál es el valor de street?
    1. AUndefined
    2. BError
    3. CTypeError: Cannot read properties of undefined (reading 'street')
    4. DNull
  6. 6const employee = {
    firstName: 'Pedro',
    age: 30
    }
    const street = employee.address.street;
    console.log(street)
    ¿Cuál es el valor de street?
    1. AUndefined
    2. BError
    3. CNull
    4. DTypeError: Cannot read properties of undefined (reading 'street')
  7. 7Al ejecutar el siguiente código ¿Cuál es la impresión en la consola?
    const promise1 = () => {
    return new Promise((resolve, reject) =>
    setTimeout(() => resolve('promise1 fullfilled'), 2000)
    )
    }
    const promise2 = () => {
    return new Promise((resolve, reject) =>
    setTimeout(() => resolve('promise2 fullfilled'), 1000)
    )
    }
    Promise.all([promise1(), promise2()]).then((result) => {
    console.log(result)
    })
    1. A['promise2 fullfilled','promise1 fullfilled']
    2. B['promise1 fullfilled', 'promise 2 fullfilled']
    3. C'promise1 fullfilled promise 2 fullfilled'
    4. D'promise2 fullfilled','promise1 fullfilled'
  8. 8¿Cuál es el resultado del siguiente código?
    let nombres = 'Carlos/José/Sandra/Ana/Rosa'
    let aNombres = nombres.split();
    console.log(aNombres.length);
    1. A1
    2. B0
    3. C5
    4. D-1
  9. 9¿Qué muestra el alert en el siguiente código?
    message="hello";
    alert(typeof message);
    1. Ahello
    2. BString
    3. C'typeof message'
    4. D"hello"
  10. 10¿Cómo se define un atributo privado en una clase de JS?
    1. A#miAtributo
    2. Bprivate miAtributo;
    3. CNo se puede declarar un atributo privado en JS
    4. Dconst private miAtributo;

Informationen

Beschreibung
Otro Exam Quiz am JS Reducido, erstellt von Nelly Santiago Morales am 02/09/2022.
Sprache
English
Aufrufe
89
Schlagwörter
examotro
Bewertung
Noch keine Bewertungen
Bewerte dieses Quiz
Bewerte dieses Quiz

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck