Re:JavaScript fundamentals before learning React
by wongma on Friday July 20, 2018 @01:51AM
(#17572797)
no, because you're not passing the arg in now right?
[ Parent
| on HN ]
Re:JavaScript fundamentals before learning React
by williamdclt on Friday July 20, 2018 @06:33AM
(#17573843)
Of course you are. The `smth` method will receive whatever arguments the caller gives.
This totally works but only if `smth` has been declared as an arrow function (so that is captures the class `this` context).