
JavaScript Masterclass - Zero to Job-Ready with Hands-On Projects - Naming Conventions / 007-1
Interactive Video
•
University
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Read more
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the recommended way to name a variable with multiple words in JavaScript?
Use underscores between words
Use all uppercase letters
Use camel case
Use spaces between words
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid variable name in JavaScript?
Variable_1
Variable-1
Variable#1
1stVariable
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why can't a variable name start with a number in JavaScript?
It causes syntax errors
It is not readable
It is allowed, but not recommended
It is reserved for special functions
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a reserved keyword in JavaScript that cannot be used as a variable name?
functionName
variableName
let
myVariable
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if you use a reserved keyword as a variable name in JavaScript?
The keyword will be overridden
An error will occur
The variable will be ignored
The code will run without any issues
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?