JS advanced 1

JS advanced 1

Professional Development

13 Qs

quiz-placeholder

Similar activities

Ivy_Honeywell_Data Analytics_4.2

Ivy_Honeywell_Data Analytics_4.2

Professional Development

10 Qs

Python Week 3

Python Week 3

Professional Development

18 Qs

C programming

C programming

Professional Development

10 Qs

C Operators

C Operators

University - Professional Development

15 Qs

Nodejs: Error Handling

Nodejs: Error Handling

Professional Development

10 Qs

Talent Next Quiz-5

Talent Next Quiz-5

Professional Development

10 Qs

Quiz Python

Quiz Python

Professional Development

12 Qs

Day3

Day3

Professional Development

15 Qs

JS advanced 1

JS advanced 1

Assessment

Quiz

Professional Development

Professional Development

Hard

Created by

Gabriel Jalil

Used 21+ times

FREE Resource

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

true + false

"truefalse"

1

NaN

SyntaxError

Answer explanation

De acuerdo al lenguaje de ECMAScript, ambos booleanos se toman cono su contraparte numerica

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

[ , , , ].length

0

3

4

Manzanas

Answer explanation

Esto resulta en un array con 3 espacios vacíos. La ultima coma es una coma final.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

0.2 + 0.1 === 0.3

true

Amarillo

false

SyntaxError

Answer explanation

Esto resulta en un dilema realmente al momento de comparar numero con coma. Si uno desea hacer estas comparaciones, debe hacerlo con niveles de tolerancia.

0.2+0.1 -> 0.30000000000000004

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

10,2

10.2

10

2

20

Answer explanation

El operador ' , ' retorna simplemente el valor del ultimo operando

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

! ! " "

True

False

undefined

error sintáctico

Answer explanation

Cuando utilizas dos signos de exclamación, podes obtener su valor booleano correspondiente.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

+ ! ! [ ]

true

false

0

1

Answer explanation

Recuerden, los arrays son un valor "verdero" (truthy) por lo que su !! lo tranforma en TRUE, y el + transforma al true en su valor numerico

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

true == "true"

true

false

undefined

Error

Answer explanation

De acuerdo a las reglas de comparacion de equidad abstracta (si, asi se llaman), ambos valores son convertidos a "numeros" cuando son comparados.

"true"-> NaN

true -> 1

tambien lo pueden pensar en que uno es una string y el otro es un booleano, y ya sta.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?