Skip to content

#coercion

2 articles tagged with coercion

Note

How == differs from === in JavaScript

The classic explanation says == checks values and === checks both type and value. The spec says something different - both check the type. This note is about what the actual difference is.

May 4, 2026 #javascript #equality #coercion

Note

How coercion works in JavaScript

JavaScript silently converts one type into another all the time. A note on why 1 + "2" is "12" and 1 - "2" is -1, and what the engine actually does between the lines.

May 1, 2026 #javascript #coercion #type-conversion