Quiz
Javascript Variables
Erstelle ein kostenloses Konto, um dieses Quiz zu beenden
Speichere deinen Fortschritt und sieh dir dein Endergebnis an.
oder mit deiner E-Mail registrieren
Schon ein Konto? Anmelden
Fragen in diesem 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 ==
- ARichtig
- BFalsch
5Variables created inside of a function can only be used within the function
- ARichtig
- BFalsch
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
- ARichtig
- BFalsch
Informationen
- Beschreibung
- Javascript Quiz am Javascript Variables, erstellt von Rene Escobar am 17/12/2014.
- Autor
- Rene Escobar
- Sprache
- English
- Aufrufe
- 970
- Schlagwörter
- Bewertung
- 3,0 von 5 · 1 Bewertung Bewerte dieses Quiz