BitlystBitlyst
PostsSeriesTopicsAbout

Bitlyst

Short, diagram-first posts on JavaScript, React & Next.js. Follow via RSS or the newsletter.

© 2026 Mohsen Fallahnejad

PostsSeriesTopicsLinksAboutSync devicesRSSGitHubX
← All topics

#this

2 posts

How 'this' Works in JavaScript: Decided by the Call, Not the Code

'this' in JavaScript depends on how a function is called, not where it's written. Four rules and one arrow-function exception cover every case.

Nov 10, 20263 min read

JavaScript Classes Are Functions in a Costume (and What this.constructor Points To)

A JavaScript class is a function with stricter rules. Learn the three rules it adds and why this.constructor lets an object reach its own class.

Nov 10, 20264 min read1

Related topics

#javascript#arrow-functions#classes#functions#oop#prototypes