Rene Escobar
Quiz von , erstellt am more than 1 year ago

Javascript Quiz am Javascript Variables, erstellt von Rene Escobar am 17/12/2014.

736
0
0
Rene Escobar
Erstellt von Rene Escobar vor mehr als 9 Jahre
Schließen

Javascript Variables

Frage 1 von 8

1

Which of these variables are not valid in Javascript?

Wähle eine der folgenden:

  • 4_colors

  • Color

  • color

  • $color

Erklärung

Frage 2 von 8

1

What happens when you declare a variable like
var myVar;

Wähle eine der folgenden:

  • The variable value(output) is set to undefined

  • The variable value(output) is set to null

Erklärung

Frage 3 von 8

1

What are some of the main differences between null and undefined?

Wähle eine oder mehr der folgenden:

  • 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"

Erklärung

Frage 4 von 8

1

=== operator is less strict in terms of identifying equality than ==

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung

Frage 5 von 8

1

Variables created inside of a function can only be used within the function

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung

Frage 6 von 8

1

Which var world is considered to have a global scope?

Wähle eine der folgenden:

  • var date;
    function sayHello(){
    }

  • function sayHello(){
    var date;
    }

Erklärung

Frage 7 von 8

1

What will console log out in the following code?
var part1 = "Team ";

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

bam();

Wähle eine der folgenden:

  • Treehouse

  • Undefined

  • Team

Erklärung

Frage 8 von 8

1

Declaring a variable without a var keyword will evaluate the variable with global scope

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung