Topics to Cover :
-
debouncing and throttling A. OnButton Click B. OnSearch Input Element
-
OOPS
-
temporal dead zone in js
Throttling is a way to limit the number of times a function can be called. Perform a function, then drop all the function calls until a certain period of time,
Debouncing is a way to delay the execution of a function to a later period until there is some ongoing action.
Link : https://dev.to/iyashsoni/javascript-debounce-vs-throttle-392i
-> Debounce, Throttle, Once so on... Advanced JavaScript Functions to Improve Code Quality