Zusammenfassung der Ressource
Frage 1
Frage
Which of these variables are not valid in Javascript?
Antworten
-
4_colors
-
Color
-
color
-
$color
Frage 2
Frage
What happens when you declare a variable like
var myVar;
Frage 3
Frage
What are some of the main differences between null and undefined?
Antworten
-
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"
Frage 4
Frage
=== operator is less strict in terms of identifying equality than ==
Frage 5
Frage
Variables created inside of a function can only be used within the function
Frage 6
Frage
Which var world is considered to have a global scope?
Frage 7
Frage
What will console log out in the following code?
var part1 = "Team ";
function bam() {
var part2 = "Treehouse";
console.log(part2);
}
bam();
Frage 8
Frage
Declaring a variable without a var keyword will evaluate the variable with global scope