Re:JavaScript fundamentals before learning React
by josephg on Friday July 20, 2018 @08:06AM
(#17574303)
this also has some really fun rules that are useful for mad science sometimes. For example, you can recover the JS context's global value via this:
In a browser this resolves to the window object. In nodejs it resolves to the global object. I've used this a few times to help write isomorphic javascript bundles, though its much less useful than it once was.
[ Parent
| on HN ]
There are no comments on this comment yet.