DEV Community

Discussion on: Coercion in JavaScript - πŸ€” do you know what it is?

Collapse
 
daniel13rady profile image
Daniel Brady

Great summary, Benjamin. πŸ‘

I'd like to suggest an edit:

Also, coercion always happens, when you use a double equal to compare two values.

This statement isn't entirely accurate: double-equal will only do coercion if it the types are different; if they are the same, it delegates the comparison to triple-equal.