Test
Javascript Variables
Crea una cuenta gratis para terminar este test
Guarda tu progreso y consulta tu resultado final.
¿Ya tienes cuenta? Inicia sesión
Preguntas del test (8)
1Which of these variables are not valid in Javascript?
- A4_colors
- BColor
- Ccolor
- D$color
2What happens when you declare a variable like
var myVar;- AThe variable value(output) is set to undefined
- BThe variable value(output) is set to null
3What are some of the main differences between null and undefined?
- ANull is used to tell the program that a value is truly empty
- BUnlike undefined, null is a falsy value
- Ctypeof null will return "Object" and typeof undefined returns "undefined"
4=== operator is less strict in terms of identifying equality than ==
- AVerdadero
- BFalso
5Variables created inside of a function can only be used within the function
- AVerdadero
- BFalso
6Which var world is considered to have a global scope?
- Avar date;
function sayHello(){
} - Bfunction sayHello(){
var date;
}
- Avar date;
7What will console log out in the following code?
var part1 = "Team ";
function bam() {
var part2 = "Treehouse";
console.log(part2);
}
bam();- ATreehouse
- BUndefined
- CTeam
8Declaring a variable without a var keyword will evaluate the variable with global scope
- AVerdadero
- BFalso
Información
- Descripción
- Javascript Test sobre Javascript Variables, creado por Rene Escobar el 17/12/2014.
- Autor
- Rene Escobar
- Idioma
- English
- Visitas
- 970
- Etiquetas
- Valoración
- 3,0 de 5 · 1 valoración Valora este test