https://www.udemy.com/course/javascript-the-complete-guide-2020-beginner-advanced/
Why use Trotlling & debouncing
- performance optimization
- limiting the rate of executions of particular functions
Scenrios where Trotlling & debouncing are used
- Search bar - debouncing is more efficient than trotlling
- Window resize - trotlling is more efficient than debouncing
- Button click (Shooting game)
Realtime Scenerio suppose for Machine gun/Pistol- range 300ms, next shot can made only after 300ms
-------- trotlling is more efficient than debouncing
Apply, Call, Bind methods
Every function in javascript has access these Apply, Call, Bind methods
Create your own function like Apply, Call, Bind methods which will be accessible in every function in javascript
Funtion.prototype.myunction = function() {
}
https://medium.com/dailyjs/how-to-remove-array-duplicates-in-es6-5daa8789641c
ng-India Webinar - Master 5 Most Popular Concepts of JavaScript
https://www.youtube.com/watch?v=F2V7MgehDSY