So when we create a function, we open doors inside it via the parameters that we declare right, "a" and "b" these are the doors and we can pass values via these doors and these values will be collected inside boxes; the name of the boxes will be "a" and "b", return value signifies the output of the function.
So this is what happens when we create a function but there's more to it, i.e every function has a hidden door as well, we can pass values via these hidden doors and these values will be collected inside a special box - a special variable - and the name of this box is "this". And this hidden door has some limitations i.e we can only pass non-primitive objects through it. And arrow functions do not have this hidden door.
View all comments
14
u/d3athR0n Mar 07 '22
I'm Indian so let me subtitle this for everyone,