Try it — tap the card
What is a closure in JavaScript?
92% likely forgottenTap to see the answer
A function that retains access to variables from its outer (enclosing) scope, even after the outer function has returned.
Tap to flip back
What is the event loop?
Last reviewed 12 days agoTap to see the answer
The mechanism that handles async operations. It continuously checks the call stack and processes the callback/microtask queues when the stack is empty.
Tap to flip back
What is the difference between var, let, and const?
87% likely forgottenTap to see the answer
var is function-scoped and hoisted. let and const are block-scoped. const cannot be reassigned (but objects/arrays can be mutated).
Tap to flip back
What is prototypal inheritance?
Fading — due 5 days agoTap to see the answer
Objects can inherit properties from other objects via the prototype chain. Each object has a [[Prototype]] link to its parent.
Tap to flip back
What is the difference between Promise.all and Promise.allSettled?
79% likely forgottenTap to see the answer
Promise.all rejects if ANY promise rejects. Promise.allSettled waits for all to complete and returns results for each (fulfilled or rejected).
Tap to flip back
What does "this" refer to in JavaScript?
Last reviewed 21 days agoTap to see the answer
It depends on how a function is called: method call (the object), plain call (undefined in strict mode), arrow function (lexical this from enclosing scope).
Tap to flip back
What is debouncing vs throttling?
94% likely forgottenTap to see the answer
Debouncing delays execution until after a pause in events. Throttling limits execution to at most once per time period. Both optimize event handlers.
Tap to flip back
What is the difference between == and ===?
Fading — due 9 days agoTap to see the answer
== does type coercion before comparison. === checks both value and type without coercion. Always prefer === for predictable behavior.
Tap to flip back
What is the recommended duration for a cardio workout to improve cardiovascular health?
85% likely forgottenTap to see the answer
The American Heart Association recommends at least 150 minutes of moderate-intensity or 75 minutes of vigorous-intensity aerobic activity per week, or a combination of both.
Tap to flip back
What is the importance of warming up before a workout?
Last reviewed 17 days agoTap to see the answer
Warming up increases blood flow to the muscles, raises body temperature, and prepares the muscles for exercise, reducing the risk of injury and improving performance.
Tap to flip back
How often should you rest between sets during strength training?
The rest period between sets depends on your goals. For muscle endurance, rest for 30-60 seconds; for hypertrophy, rest for 60-90 seconds; and for strength, rest for 2-5 minutes.
Sign up to reveal the answer and start learning
What is the role of protein in muscle recovery and growth?
Protein provides the necessary amino acids for muscle repair and growth. Consuming protein post-workout helps to reduce muscle soreness and supports the recovery process.
Sign up to reveal the answer and start learning