Gestalte GoConqr mit. Was sollen wir als Nächstes hinzufügen?

Quiz

Javascript Variables

Rene Escobar 8 Fragen 3,0 (1 Bewertung)

Quiz starten

Fragen in diesem Quiz (8)

  1. 1Which of these variables are not valid in Javascript?
    1. A4_colors
    2. BColor
    3. Ccolor
    4. D$color
  2. 2What happens when you declare a variable like
    var myVar;
    1. AThe variable value(output) is set to undefined
    2. BThe variable value(output) is set to null
  3. 3What are some of the main differences between null and undefined?
    1. ANull is used to tell the program that a value is truly empty
    2. BUnlike undefined, null is a falsy value
    3. Ctypeof null will return "Object" and typeof undefined returns "undefined"
  4. 4=== operator is less strict in terms of identifying equality than ==
    1. ARichtig
    2. BFalsch
  5. 5Variables created inside of a function can only be used within the function
    1. ARichtig
    2. BFalsch
  6. 6Which var world is considered to have a global scope?
    1. Avar date;
      function sayHello(){
      }
    2. Bfunction sayHello(){
      var date;
      }
  7. 7What will console log out in the following code?
    var part1 = "Team ";

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

    bam();
    1. ATreehouse
    2. BUndefined
    3. CTeam
  8. 8Declaring a variable without a var keyword will evaluate the variable with global scope
    1. ARichtig
    2. BFalsch

Informationen

Beschreibung
Javascript Quiz am Javascript Variables, erstellt von Rene Escobar am 17/12/2014.
Sprache
English
Aufrufe
970
Schlagwörter
javascript
Bewertung
3,0 von 5 · 1 Bewertung
Bewerte dieses Quiz
Bewerte dieses Quiz

Feedback

Worum geht es?

Was sollen wir als Nächstes hinzufügen?