
JavaScript Basics Quiz
Quiz
•
Computers
•
Professional Development
•
Practice Problem
•
Hard
Anas Muhammed
FREE Resource
Enhance your content in a minute
15 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 variable that is block scoped
To declare a variable that is globally scoped
To declare a constant variable
To declare a variable that can be re-assigned
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a primitive data type in JavaScript?
String
Object
Number
Boolean
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the 'return' statement do in a function?
Invokes another function
Declares a variable
Returns a value to the caller
Ends the function execution
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the expression '2 + '7' in JavaScript?
27
Undefined
9
Error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements is true about the 'this' keyword?
It always refers to the global object
It is always undefined
It refers to the object that is currently executing the function
It cannot be used in arrow functions
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a promise in JavaScript?
A way to handle synchronous tasks
A method to create variables
An object that represents the eventual completion of an asynchronous operation
A function that returns a value immediately
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a method to create a new element in the DOM?
document.getElementById()
document.removeChild()
document.createElement()
document.querySelector()
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?
Similar Resources on Wayground
20 questions
Nuevas tecnologías
Quiz
•
6th Grade - Professio...
20 questions
Tout savoir sur Windows Quiz 2
Quiz
•
Professional Development
10 questions
Què en saps de GSuite?
Quiz
•
University - Professi...
14 questions
Tin học 7 - ÔT Cuối kì 2 CĐ Bảng tính - Trình chiếu
Quiz
•
Professional Development
13 questions
Five Nights At Freddy's: Security Breach Quiz
Quiz
•
KG - Professional Dev...
16 questions
L4 Ôn tập HK 2 - 22-23
Quiz
•
Professional Development
10 questions
Soal SKD
Quiz
•
University - Professi...
20 questions
java revews
Quiz
•
Professional Development
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Computers
10 questions
How to Email your Teacher
Quiz
•
Professional Development
6 questions
3RD GRADE DECLARATION OF INDEPENDENCE EXIT TICKET
Quiz
•
Professional Development
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
22 questions
Multiplying Exponents with the Same Base
Quiz
•
9th Grade - Professio...
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...
