Javascript Variables

Beschreibung

Javascript Quiz am Javascript Variables, erstellt von Rene Escobar am 17/12/2014.
Rene Escobar
Quiz von Rene Escobar, aktualisiert more than 1 year ago
Rene Escobar
Erstellt von Rene Escobar vor fast 10 Jahre
804
0

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;
Antworten
  • The variable value(output) is set to undefined
  • The variable value(output) is set to null

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 ==
Antworten
  • True
  • False

Frage 5

Frage
Variables created inside of a function can only be used within the function
Antworten
  • True
  • False

Frage 6

Frage
Which var world is considered to have a global scope?
Antworten
  • var date; function sayHello(){ }
  • function sayHello(){ var date; }

Frage 7

Frage
What will console log out in the following code? var part1 = "Team "; function bam() { var part2 = "Treehouse"; console.log(part2); } bam();
Antworten
  • Treehouse
  • Undefined
  • Team

Frage 8

Frage
Declaring a variable without a var keyword will evaluate the variable with global scope
Antworten
  • True
  • False
Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

Quiz - Object Oriented Javascript
arunram.krish
Examen Fundamentos Basicos de Programación
Jose Valderrama0721
Test I. Introduction to web technologies
Angel Martínez Rodriguez
JavaScript Fundamentals
Andrew Watters
Front-End Web Development
Chanthy Ngin
Javascript - Quiz - Jan 2016
arunram.krish
OpenSource Programming
Faheem Ahmed
Javascript basics
James Drummond
jQuery Basics functions and method
Victor Bini
JavaScript DOM API - Funções Basicas - Interactive Web Pages
Victor Bini
Programming
Herbert Fortes