Getting started with javascript frontend master course Understanding type coercion == is about comparison with known types. Type coercion happens when the two operands type aren't the same. The == and === does exactly the same thing in 100% cases if the type are the same.