The Modern JavaScript Bootcamp (2019) - More on Variables

Interactive Video
•
Information Technology (IT), Architecture
•
University
•
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.
Similar Resources on Wayground
6 questions
TypeScript for Beginners - Introduction - Variables and Data Types

Interactive video
•
University
6 questions
Learn JavaScript from Scratch JavaScript for Everyone - JavaScript Hoisting

Interactive video
•
University
6 questions
JavaScript Mastery from Zero to Hero - Prepare for Coding Interviews - Exercise Solution - Incrementing and Decrementing

Interactive video
•
University
6 questions
JavaScript Mastery from Zero to Hero - Prepare for Coding Interviews - The Difference Between Let and Const in JavaScrip

Interactive video
•
University
6 questions
Learn JavaScript from Scratch JavaScript for Everyone - JavaScript Closures

Interactive video
•
University
6 questions
The Front-End Web Developer Bootcamp - HTML, CSS, JS, and React - JavaScript Implementation

Interactive video
•
University
6 questions
JavaScript Mastery from Zero to Hero - Prepare for Coding Interviews - Solution - Login Iteration Calculator

Interactive video
•
University
6 questions
TypeScript for Beginners - let Prefix

Interactive video
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University