
The Modern JavaScript Bootcamp (2019) - More on Variables
Interactive Video
•
Information Technology (IT), Architecture
•
University
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Read more
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if you try to define a variable with the same name twice using 'let' in JavaScript?
JavaScript throws a syntax error.
The second variable is ignored.
The variable is overwritten without any error.
The program runs but with unexpected results.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid variable name in JavaScript?
1variable
variable$
variable#
variable!
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why can't a variable name start with a number in JavaScript?
It makes the code run slower.
It is reserved for special functions.
It is allowed, but not recommended.
It causes a syntax error.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which character is NOT allowed as the first character in a JavaScript variable name?
An exclamation mark (!)
A letter
An underscore (_)
A dollar sign ($)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a reserved keyword in JavaScript?
A word that is ignored by the compiler.
A word that is used for comments.
A word that has a special meaning in the language.
A word that can be used as a variable name.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a reserved keyword in JavaScript?
var
let
const
function
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you avoid using a reserved keyword as a variable name?
By adding a number at the end.
By using it in uppercase.
By using it in lowercase.
By slightly altering the keyword.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
6 questions
Ben Affleck's Batman Future in Doubt as Warner Bros. Plots Franchise | THR News
Interactive video
•
University
8 questions
The Complete React Developer Course (with Hooks and Redux) - Webpack Dev Server
Interactive video
•
University
8 questions
Series | Convergent p-Series: 4 Examples
Interactive video
•
University
2 questions
Full Stack Web Development MASTERY Course - Novice to Expert - Introduction to Mongoose
Interactive video
•
University
2 questions
HTML CSS and JavaScript for Beginners - A Web Design Course - Operators and Assignments
Interactive video
•
University
5 questions
Selenium WebDriver with Java - Basics to Advanced and Frameworks - Date Class Concepts
Interactive video
•
University
5 questions
ChatGPT for Web Design - Create Amazing Websites - Starting Our Amazing Website
Interactive video
•
University
5 questions
The Modern JavaScript Bootcamp (2019) - Exploring String Methods
Interactive video
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
7 questions
Fragments, Run-ons, and Complete Sentences
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
10 questions
DNA Structure and Replication: Crash Course Biology
Interactive video
•
11th Grade - University
5 questions
Inherited and Acquired Traits of Animals
Interactive video
•
4th Grade - University
5 questions
Examining Theme
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University