Changing the context of a function in JavaScript -
Get link
Facebook
X
Pinterest
Email
Other Apps
This is taken from the advanced JavaScript # 25 of John Recife, which is called changing the context of the function.
1) In line fn () == what is it mentioned? Does it mention it inside the ceremony where it says that it comes back?
2) Although I understand the purpose of the last line (to attach a specific object to the function), I do not know how it codifies. Is the word "call" a pre-defined javascript function? In plain language, please explain "fn.call (object)", and clearly tell me if
Comments
Post a Comment