Javascript is indeed notoriously opaque in terms of assigning “self” to a function call. There are multiple ways to do it more explicitly, including prototype inheritance, using Function.prototype.bind() etc., all being workarounds for passing and calling “selfless” methods. So yeah, I agree with your main point.
Javascript is indeed notoriously opaque in terms of assigning “self” to a function call. There are multiple ways to do it more explicitly, including prototype inheritance, using Function.prototype.bind() etc., all being workarounds for passing and calling “selfless” methods. So yeah, I agree with your main point.