Mastering the Art of Borrowing: call, apply, and bind in JavaScript
Ever wondered how functions in JavaScript can do magic tricks like changing their context or having pre-baked arguments? Well, the secret lies in three special methods: call, apply, and bind.
Think of these methods as borrowing tools for functions. T...
mathiblog.hashnode.dev3 min read