JavaScript Variables Flashcard

JavaScript Variables Flashcard

Assessment

Flashcard

Computers

9th - 12th Grade

Hard

Created by

Quizizz Content

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?