Debounce delays execution until events stop firing; throttle limits execution to at most once per interval. Use debounce for input typing, throttle for scroll/resize.
Expanding on the short answer — what usually matters in practice:
A tiny example (an explanation template):
// Example: discuss trade-offs for "what-are-debounce-and-throttle-and-when-would-yo"
function explain() {
// Start from the core idea:
// Debounce delays execution until events stop firing; throttle limits execution to at most o
}