In my recent project the requirement was to persist the data on refreshing the page, the first approach I…
Debouncing & Throttling are the techniques to optimise the system. Basically these are used to prevent the too much function calls. let discuss one by one.
Debouncing:
Callback Function:
When we call a function , we may pass some data as an arguments to that function like 1,2,”Car” etc,But in JavaScript , it is possible to pass a function as an argument to that function as well.