Quiz
Javascript Variables
Crie uma conta grátis para terminar este quiz
Salve seu progresso e veja sua nota final.
Já tem uma conta? Inicie sessão
Perguntas do quiz (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 ==
- AVerdadeiro
- BFalso
5Variables created inside of a function can only be used within the function
- AVerdadeiro
- 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
- AVerdadeiro
- BFalso
Informações
- Descrição
- Javascript Quiz sobre Javascript Variables, criado por Rene Escobar em 17-12-2014.
- Autor
- Rene Escobar
- Idioma
- English
- Visualizações
- 970
- Etiquetas
- Avaliação
- 3,0 de 5 · 1 avaliação Avalie este quiz