
JavaScript Fundamentals Quiz
Authored by Hans Daduya
Education
12th Grade
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
32 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to declare a variable in JavaScript?
a.var
b.let
c.const
d.All of the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will typeof true return?
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you write a comment in JavaScript?
a.<-- This is a comment -->
b.#This is a comment
c.//This is a comment
d.'This is a comment'
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare an array in JavaScript?
a.let arr={};
b.let arr=[];
c.let arr=();
d.let arr=<>;
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a JavaScript data type?
a.undefined
b.string
c.integer
d.number
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the index of the first element in an array in JavaScript?
a.0
b.1
c.-1
d.Depends on the array
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare a constant variable in JavaScript?
a.var
b.const
c.let
d.static
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?