15 ms·
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
by Buttons840 2y 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.
- umpalumpaaa 2y agoI was not trying to imply that this is a mental model. I was merely commenting on OPs comment about JavaScript.