From 23712d24b5d5d139e29d6410ce6bb453b849e564 Mon Sep 17 00:00:00 2001 From: Reza Hasani <49451713+Rezahasani1378@users.noreply.github.com> Date: Tue, 3 Sep 2024 16:41:34 +0330 Subject: [PATCH] Update bind@dbercnxXVTJXMpYSDNGb2.md (#6937) --- .../javascript/content/bind@dbercnxXVTJXMpYSDNGb2.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/data/roadmaps/javascript/content/bind@dbercnxXVTJXMpYSDNGb2.md b/src/data/roadmaps/javascript/content/bind@dbercnxXVTJXMpYSDNGb2.md index 408659cea..901b106a9 100644 --- a/src/data/roadmaps/javascript/content/bind@dbercnxXVTJXMpYSDNGb2.md +++ b/src/data/roadmaps/javascript/content/bind@dbercnxXVTJXMpYSDNGb2.md @@ -1,8 +1,9 @@ # bind() -The `bind()` method creates a new function with a given `this` value and arguments provided as an array. The original function is not called immediately but can be called later with the `new` keyword or as a normal function call. +The `bind()` method in JavaScript allows you to create a new function with a specific context and optionally preset arguments. Unlike `call()` or `apply()`, `bind()` does not immediately invoke the function. Instead, it returns a new function that can be called later, either as a regular function or with additional arguments. This is particularly useful when you want to ensure that a function retains a specific context, regardless of how or when it's invoked. Visit the following resources to learn more: -- [@article@Understanding Explicit Binding in JavaScript: Call, Bind, and Apply Methods](https://medium.com/@amitsharma_24072/understanding-explicit-binding-in-javascript-call-bind-and-apply-methods-7b6ed0107628) -- [@article@Javascript Function Bind()](https://www.w3schools.com/js/js_function_bind.asp) \ No newline at end of file +- [@official@bind()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind) +- [@article@Function binding](https://javascript.info/bind) +- [@article@Javascript Function Bind()](https://www.w3schools.com/js/js_function_bind.asp)