
JavaScript Concepts Quiz
Mathematics
2nd Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to declare a variable in JavaScript?
`var myVariable;`
`variable myVariable;`
`v myVariable;`
`declare myVariable;`
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct way to define a function in JavaScript?
`function myFunction() {}`
`def myFunction() {}`
`function: myFunction() {}`
`func myFunction() {}`
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the `async` keyword in JavaScript?
To make a function run faster
To declare a function that returns a promise
To pause the execution of a function
To make a function synchronous
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to select an element by its ID in the DOM?
`document.getElementById()`
`document.querySelector()`
`document.getElementsByClassName()`
`document.getElementsByTagName()`
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the `map()` method do in JavaScript arrays?
It modifies the original array
It creates a new array with the results of calling a provided function on every element
It filters the array based on a condition
It sorts the array in ascending order
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you create a promise in JavaScript?
`let promise = new Promise();`
`let promise = Promise.create();`
`let promise = new Promise((resolve, reject) => {});`
`let promise = Promise();`
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid way to add an event listener to a DOM element?
`element.addEventListener('click', function() {});`
`element.on('click', function() {});`
`element.listen('click', function() {});`
`element.event('click', function() {});`
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
10 questions
Multiplication and Repeated Addition
Quiz
•
2nd Grade
10 questions
Multiplication Models
Quiz
•
2nd - 3rd Grade
10 questions
Repeated Addition
Quiz
•
2nd Grade
10 questions
Matrice. Operații cu matrice.
Quiz
•
1st - 10th Grade
10 questions
2nd Grade Math Quiz
Quiz
•
1st - 2nd Grade
10 questions
Multiplication with an Unknown Factor
Quiz
•
2nd - 4th Grade
15 questions
Arrays and Repeated Addition
Quiz
•
2nd Grade
10 questions
Multiplication
Quiz
•
2nd Grade
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 Mathematics
10 questions
Exploring Rosa Parks and Black History Month
Interactive video
•
1st - 5th Grade
20 questions
Counting Coins
Quiz
•
2nd Grade
20 questions
Place Value
Quiz
•
KG - 3rd Grade
13 questions
Fractions
Quiz
•
1st - 2nd Grade
12 questions
2-Digit Subtraction with Regrouping
Quiz
•
2nd Grade
14 questions
Fractions
Quiz
•
2nd - 3rd Grade
20 questions
Multiplication Facts
Quiz
•
2nd - 3rd Grade
13 questions
Identifying Fractions
Quiz
•
2nd - 3rd Grade