javascript Top 20 Interview Questions part-1
Write your own debounce method for some event
function debouce(fn, time){
let timeoutId;
return function() {
// Check for existing calls
if (timeoutId) {
clearTimeout(timeoutId)
}
timeoutId = setTimeout(() => {...
articles.tkssharma.com10 min read