Flowchart for JavaScript's this

I’ve seen a few of these before but most only covered the basics. I thought I’d take a stab at it and try to make one that was a little more comprehensive. Here is the result:

Wow. This is impressive.

1 Like

It’s amazing, but missing a “this is Sparta” branch…

(Oh and some interesting spellings of “containing”.)

1 Like

@senocular - do you want to share your diagram on Twitter and I will retweet it? :slight_smile:

Nice catch! I’ll update those contooning typos (some obvious copy pasta usage happening).

I don’t tweet, but you’re welcome to share it.

You should be on the TC39 committee… :slightly_smiling_face:

Made a minor update to include class static blocks which have recently made it to stage 4 (the final stage) of the proposal approval process and will be in the next version of the spec.

1 Like