
JavaScript Fundamentals Quiz
Authored by Techtorial Academy
Information Technology (IT)
Professional Development
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
29 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the 'let' keyword in JavaScript?
To declare a function
To declare a variable with global scope
To declare a constant variable
To declare a variable with block scope
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a reserved word in JavaScript?
function
variable
constant
define
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the camelCase convention refer to?
Using all uppercase letters
Capitalizing the first letter of each word except the first
Using underscores between words
Writing variables with spaces
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator is used for exponentiation in JavaScript?
^^
exp
^
**
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of 'typeof null' in JavaScript?
'object'
'boolean'
'null'
'undefined'
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method converts a string to an integer in JavaScript?
String
parseFloat
Number
parseInt
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between '==' and '===' in JavaScript?
'==' checks value only, '===' checks type only
'==' checks value and type, '===' checks value only
'==' checks type only, '===' checks value only
'==' checks value only, '===' checks value and type
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?