Hacker News new | ask | show | jobs
by Buttons840 628 days ago
That's a pile of tricks, not a mental model though.

A mental model might be something like "JavaScript has strict and non-strict comparisons", but there are no strict less-than comparisons for example, so remembering to use === instead of == is just a one-off neat tip rather than an application of some more general rule.

1 comments

I was not trying to imply that this is a mental model. I was merely commenting on OPs comment about JavaScript.