JS advanced 1

JS advanced 1

Professional Development

13 Qs

quiz-placeholder

Similar activities

Python

Python

Professional Development

10 Qs

operators in python

operators in python

Professional Development

14 Qs

Python operator and collections

Python operator and collections

Professional Development

12 Qs

Quiz 9 - JSP_TalentNext

Quiz 9 - JSP_TalentNext

Professional Development

8 Qs

Python Strings MCQ

Python Strings MCQ

Professional Development

15 Qs

day4

day4

Professional Development

15 Qs

Python if statement

Python if statement

Professional Development

10 Qs

Java Script II

Java Script II

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?