Javascript Variables

Descripción

Javascript Test sobre Javascript Variables, creado por Rene Escobar el 17/12/2014.
Rene Escobar
Test por Rene Escobar, actualizado hace más de 1 año
Rene Escobar
Creado por Rene Escobar hace más de 9 años
736
0

Resumen del Recurso

Pregunta 1

Pregunta
Which of these variables are not valid in Javascript?
Respuesta
  • 4_colors
  • Color
  • color
  • $color

Pregunta 2

Pregunta
What happens when you declare a variable like var myVar;
Respuesta
  • The variable value(output) is set to undefined
  • The variable value(output) is set to null

Pregunta 3

Pregunta
What are some of the main differences between null and undefined?
Respuesta
  • 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"

Pregunta 4

Pregunta
=== operator is less strict in terms of identifying equality than ==
Respuesta
  • True
  • False

Pregunta 5

Pregunta
Variables created inside of a function can only be used within the function
Respuesta
  • True
  • False

Pregunta 6

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

Pregunta 7

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

Pregunta 8

Pregunta
Declaring a variable without a var keyword will evaluate the variable with global scope
Respuesta
  • True
  • False
Mostrar resumen completo Ocultar resumen completo

Similar

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