
JavaScript Quiz

Quiz
•
Other
•
University
•
Medium

Gnaneshwar Reddy
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does document.getElementById("demo") do?
Changes the class of an element
Adds a new element
Selects an element with ID "demo"
Removes an element
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method adds a click event listener to a button?
button.listen("click")
button.addEvent("click", function)
button.addEventListener("click", function)
button.onClick(function)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will [].forEach() do in JavaScript?
Modify the array directly
Create a new array
Loop through each element
Remove elements from the array
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method returns a new array with transformed values?
filter()
map()
forEach()
reduce()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of typeof null in JavaScript?
"null"
"undefined"
"object"
"nulltype"
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct if statement?
if x == 5:
if x = 5
if (x == 5) {}
if x = 5 {}
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does filter() return?
A boolean
A single value
A modified original array
A new array with filtered elements
Create a free account and access millions of resources
Similar Resources on Wayground
14 questions
In-Lab5

Quiz
•
University
12 questions
Direct On Line Starter (DOL) control circuit

Quiz
•
12th Grade - University
12 questions
Excel Essentials Training

Quiz
•
University
10 questions
Stack Data Structure

Quiz
•
University
10 questions
Quiz JS DW v1

Quiz
•
University
15 questions
C Quiz

Quiz
•
University
15 questions
GAME QUIZ!!

Quiz
•
University
15 questions
Web Development Quiz

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Other
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University