Type coercion
Also written: coercion
JavaScript converting a value's type automatically, as when `"5" * 3` turns `"5"` into a number. It can cause surprises, so it is safer to convert values on purpose with functions such as `Number`.
Also written: coercion
JavaScript converting a value's type automatically, as when `"5" * 3` turns `"5"` into a number. It can cause surprises, so it is safer to convert values on purpose with functions such as `Number`.