TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Confused about closures and 'this'? Check out my guide to JavaScript scoping

2 pointsby jesseduffieldalmost 5 years ago

1 comment

jesseduffieldalmost 5 years ago
I couple of weeks ago I did a deep-dive into JavaScript scoping and learnt a lot about how closures work under the hood and why we the `this` keyword exists in the first place. I wrote a guide that explained everything to my two-weeks-younger self and made a video covering most of it too!<p>I try my best to back up everything I claim experimentally via chrome dev tools but there are a couple of things that are specific to ECMAScript. Let me know your thoughts :)