Created
July 12, 2021 22:52
-
-
Save kevinhooke/e947616387182b7fe00485b6bc392f4e to your computer and use it in GitHub Desktop.
JavaScript .call()
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#calls a function setting the value for 'this' within the function | |
functionName.call(someThisValue, otherParams); | |
- the first param passed is the value for 'this' when this is referenced within that function | |
See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/call |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment