Search Header Logo

Preguntas de JavaScript

Authored by Ricardo Chipana

Computers

Professional Development

Used 1+ times

Preguntas de JavaScript
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Cómo se declara una variable que no cambiará su valor?

var edad = 30;

let edad = 30;

const edad = 30;

edad = 30;

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Para repetir un bloque 5 veces, se usa:

while(i { console.log('Hola'); }

function => saludar() {}

saludar:function() {}

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Un callback es:

Una función que se llama a sí misma.

Una función pasada como argumento a otra.

Una función anónima sin parámetros.

Un error en tiempo de ejecución.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Qué devuelve .map() comparado con .forEach()?

.map() devuelve un nuevo array; .forEach() no.

.map() modifica el array original; .forEach() no.

Son equivalentes.

.forEach() devuelve un nuevo array; .map() no.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Cuál NO es un tipo primitivo en JavaScript?

boolean

object

number

string

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Qué devuelve typeof null?

"null"

"undefined"

"object"

TypeError

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Cuál es la diferencia entre == y ===?

No hay diferencia.

== compara tipo; === compara valor.

== compara valor; === compara valor y tipo.

=== solo se usa en strings.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?