---
title: "Discussion on \"Mastering the Art of Borrowing: call, apply, and bind in JavaScript\" | Hashnode"
description: "Discussion on \"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.\nThink of these methods as borrowing tools for functions. T..."
url: "https://hashnode.com/posts/mastering-the-art-of-borrowing-call-apply-and-bind-in-javascript/657926592f2a5e18c983b15b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Mastering the Art of Borrowing: call, apply, and bind in JavaScript](https://mathiblog.hashnode.dev/mastering-the-art-of-borrowing-call-apply-and-bind-in-javascript?utm_source=hashnode&utm_medium=feed)

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...

Dec 13, 2023 · 3 min read · mathiblog.hashnode.dev  
Read the article

-   [#javascript-functions](https://hashnode.com/tag/javascript-functions)
-   [#context](https://hashnode.com/tag/context)
-   [#code-reusability](https://hashnode.com/tag/code-reusability)

## Written by

[Mathi Yuvarajan](https://hashnode.com/@mathidev)

@mathidev · Coimbatore

  
[View profile](https://hashnode.com/@mathidev)

Head of GenAI

Head of GenAI | AI Research &amp; Engineering | LLMs, Agentic AI &amp; Applied AI Systems. I bridge research and engineering to build practical, scalable AI systems. HW/SW. First Principles Thinker. Mathematician.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
