Brisk
Quiz
Practice. Learn. Score.
Home
🔍
🌙
🏆
Leaderboard
Login
IT
›
JavaScript
⏱
00:00
0/7 answered
Score: 0
🔀 Click here to get new question set
Sign up
to save this score to the leaderboard.
Question 1
What is the purpose of the browser's "Intersection Observer" API?
Efficiently observes when a target element enters or exits the viewport (or another element)
Efficiently observes and reports every single mouse movement made anywhere across a given page
Efficiently observes changes made to a given element's own current CSS styling
Efficiently observes and reports every single keystroke made anywhere across a given page
Question 2
What is "callback hell" (or the "pyramid of doom"), as a common criticism of deeply nested JavaScript callbacks?
Deeply nested callbacks make asynchronous code hard to read and maintain
A specific, formal technical term used only for describing a JavaScript engine's own memory leak
A built-in browser feature used only for automatically detecting a script's own infinite loops
A specific, dedicated debugging tool used only for actually visualizing a Promise chain's execution
Question 3
What is the difference between a JavaScript "macrotask" (such as a setTimeout callback) and a "microtask" (such as a Promise callback)?
Microtasks can only ever actually be created directly and exclusively via setTimeout itself
All currently queued microtasks run before the next macrotask is actually processed
All currently queued macrotasks run before the next microtask is actually processed
Macrotasks and microtasks are processed in an entirely identical, interchangeable manner
Question 4
What is the purpose of JavaScript's "Array.prototype.splice()" method?
Changes an array's contents by removing and/or adding elements, modifying it in place
Combines two or more separate, individual arrays together into just one single combined array
Returns a shallow copy of a specified portion of an array, without ever modifying the original
Compares two given arrays for exact, element-by-element structural equality with one another
Question 5
What is the purpose of "code splitting", as commonly performed by a JavaScript bundler?
Automatically and permanently splits a single large JavaScript file into several separate, unrelated files
Breaks a large bundle into smaller chunks, loaded on demand rather than all upfront
Automatically and permanently removes unused code from the resulting final bundle entirely
Automatically and permanently minifies variable names throughout the entire resulting bundle
Question 6
What is the purpose of JavaScript's "event.preventDefault()" method?
Prevents the browser's default action associated with a given event from actually occurring
Permanently stops that specific event from ever bubbling further up through the DOM
Immediately and forcibly triggers every other event listener attached to that exact same element
Permanently and completely removes the event listener that is actually currently handling it
Question 7
What is the purpose of the JavaScript "Set" object?
Stores an immutable, read-only sequence of values once that Set is actually created
Stores a collection of unique values, silently ignoring any duplicate added to it
Stores an ordered collection that freely permits duplicate values to be added
Stores key-value pairs, mapping each unique key directly to its own corresponding value
🔀 Click here to get new question set
Sign up
to save this score to the leaderboard.
Share this quiz
𝕏
💬
f
in
🔗
📚 All Quizzes
Browse every category and see the full list of quizzes on BriskQuiz
→
🏠
Home
📚
Categories
🏆
Leaderboard
👤
Profile