Rene Escobar
Test por , creado hace más de 1 año

Javascript Test sobre Javascript Variables, creado por Rene Escobar el 17/12/2014.

736
0
0
Rene Escobar
Creado por Rene Escobar hace más de 9 años
Cerrar

Javascript Variables

Pregunta 1 de 8

1

Which of these variables are not valid in Javascript?

Selecciona una de las siguientes respuestas posibles:

  • 4_colors

  • Color

  • color

  • $color

Explicación

Pregunta 2 de 8

1

What happens when you declare a variable like
var myVar;

Selecciona una de las siguientes respuestas posibles:

  • The variable value(output) is set to undefined

  • The variable value(output) is set to null

Explicación

Pregunta 3 de 8

1

What are some of the main differences between null and undefined?

Selecciona una o más de las siguientes respuestas posibles:

  • Null is used to tell the program that a value is truly empty

  • Unlike undefined, null is a falsy value

  • typeof null will return "Object" and typeof undefined returns "undefined"

Explicación

Pregunta 4 de 8

1

=== operator is less strict in terms of identifying equality than ==

Selecciona uno de los siguientes:

  • VERDADERO
  • FALSO

Explicación

Pregunta 5 de 8

1

Variables created inside of a function can only be used within the function

Selecciona uno de los siguientes:

  • VERDADERO
  • FALSO

Explicación

Pregunta 6 de 8

1

Which var world is considered to have a global scope?

Selecciona una de las siguientes respuestas posibles:

  • var date;
    function sayHello(){
    }

  • function sayHello(){
    var date;
    }

Explicación

Pregunta 7 de 8

1

What will console log out in the following code?
var part1 = "Team ";

function bam() {
var part2 = "Treehouse";
console.log(part2);
}

bam();

Selecciona una de las siguientes respuestas posibles:

  • Treehouse

  • Undefined

  • Team

Explicación

Pregunta 8 de 8

1

Declaring a variable without a var keyword will evaluate the variable with global scope

Selecciona uno de los siguientes:

  • VERDADERO
  • FALSO

Explicación