JavaScript Variables Flashcard

JavaScript Variables Flashcard

Assessment

Flashcard

Computers

9th - 12th Grade

Practice Problem

Easy

Created by

Wayground Content

Used 1+ times

FREE Resource

Student preview

quiz-placeholder

26 questions

Show all answers

1.

FLASHCARD QUESTION

Front

How do you declare a variable in JavaScript?

Back

var

2.

FLASHCARD QUESTION

Front

What are the different types of values that a variable in JavaScript can represent?

Back

string, number, boolean, object, function, undefined

3.

FLASHCARD QUESTION

Front

Is JavaScript attentive to the way we dress up variable names, paying attention to uppercase and lowercase letters?

Back

Yes

4.

FLASHCARD QUESTION

Front

Show Me What You Got! You're creating a new variable in JavaScript for your intergalactic DJ app. What rules must you follow for naming it?

Back

Variable names must begin with a letter, underscore (_), or dollar sign ($)

5.

FLASHCARD QUESTION

Front

What does JavaScript default a variable to if it is declared but not assigned any value?

Back

undefined

6.

FLASHCARD QUESTION

Front

Show Me What You Got! Explain the difference between 'let', 'var', and 'const' in JavaScript variable declaration.

Back

They have different scopes and usage in JavaScript.

7.

FLASHCARD QUESTION

Front

Can a variable name in JavaScript be initiated with a digit?

Back

No

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?