Javascript Variables

Descrição

Javascript Quiz sobre Javascript Variables, criado por Rene Escobar em 17-12-2014.
Rene Escobar
Quiz por Rene Escobar, atualizado more than 1 year ago
Rene Escobar
Criado por Rene Escobar quase 10 anos atrás
803
0

Resumo de Recurso

Questão 1

Questão
Which of these variables are not valid in Javascript?
Responda
  • 4_colors
  • Color
  • color
  • $color

Questão 2

Questão
What happens when you declare a variable like var myVar;
Responda
  • The variable value(output) is set to undefined
  • The variable value(output) is set to null

Questão 3

Questão
What are some of the main differences between null and undefined?
Responda
  • 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"

Questão 4

Questão
=== operator is less strict in terms of identifying equality than ==
Responda
  • True
  • False

Questão 5

Questão
Variables created inside of a function can only be used within the function
Responda
  • True
  • False

Questão 6

Questão
Which var world is considered to have a global scope?
Responda
  • var date; function sayHello(){ }
  • function sayHello(){ var date; }

Questão 7

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

Questão 8

Questão
Declaring a variable without a var keyword will evaluate the variable with global scope
Responda
  • True
  • False

Semelhante

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