Ayúdanos a dar forma a GoConqr. ¿Qué deberíamos añadir?

Test

Javascript Variables

Rene Escobar 8 preguntas 3,0 (1 valoración)

Hacer el test

Preguntas del test (8)

  1. 1Which of these variables are not valid in Javascript?
    1. A4_colors
    2. BColor
    3. Ccolor
    4. D$color
  2. 2What happens when you declare a variable like
    var myVar;
    1. AThe variable value(output) is set to undefined
    2. BThe variable value(output) is set to null
  3. 3What are some of the main differences between null and undefined?
    1. ANull is used to tell the program that a value is truly empty
    2. BUnlike undefined, null is a falsy value
    3. Ctypeof null will return "Object" and typeof undefined returns "undefined"
  4. 4=== operator is less strict in terms of identifying equality than ==
    1. AVerdadero
    2. BFalso
  5. 5Variables created inside of a function can only be used within the function
    1. AVerdadero
    2. BFalso
  6. 6Which var world is considered to have a global scope?
    1. Avar date;
      function sayHello(){
      }
    2. Bfunction sayHello(){
      var date;
      }
  7. 7What will console log out in the following code?
    var part1 = "Team ";

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

    bam();
    1. ATreehouse
    2. BUndefined
    3. CTeam
  8. 8Declaring a variable without a var keyword will evaluate the variable with global scope
    1. AVerdadero
    2. BFalso

Información

Descripción
Javascript Test sobre Javascript Variables, creado por Rene Escobar el 17/12/2014.
Idioma
English
Visitas
970
Etiquetas
javascript
Valoración
3,0 de 5 · 1 valoración
Valora este test
Valora este test

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué deberíamos añadir?