0

How to add a property to this object of a function via call or apply in JavaScript?

I want to add a property to this object of a function from outside of that function. I know that this can be achieved by prototype. But I want to do this via call or apply.

25th Apr 2017, 4:44 PM
Chinmoy Samanta
1 Answer
+ 3
This video would help you understand it. https://youtu.be/c0mLRpw-9rI
25th Apr 2017, 4:55 PM
CalviŐ˛
CalviŐ˛ - avatar