
JAVASCRIPT FINAL EXAM
Authored by UKIZURU MUSTAPHA
others
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a primitive data type in JavaScript?
a) Number
b) String
c) Boolean
d) Object
2.
MULTIPLE CHOICE QUESTION
30 sec • Ungraded
What is the output of the following code: let x = [1, 2, 3]; document.write(x[3]);
3.
MULTIPLE CHOICE QUESTION
30 sec • Ungraded
Which of the following is not a valid way to declare a function in JavaScript?
4.
MULTIPLE CHOICE QUESTION
30 sec • Ungraded
What is the output of the following code: let x = 10; function foo(){ console.log(x); } foo();
5.
MULTIPLE CHOICE QUESTION
30 sec • Ungraded
What is the output of the following code: let x = 2; x+=1; document.write(x);
6.
MULTIPLE CHOICE QUESTION
30 sec • Ungraded
What is the correct way to declare a variable in JavaScript?
7.
MULTIPLE CHOICE QUESTION
30 sec • Ungraded
What is the output of the following code: let x = [1, 2, 3]; console.log(x.length);
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 Microsoft
or continue with
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?