Skip to content
engineering workbench.by StudyPort Academy
All glossary terms

GLOSSARY · A WORD, UNPACKED

type coercion

JavaScript automatically converting a value from one type to another so an operation can complete.

A little more detail

For example, plus can join a string and a number as text, while other operators request numeric conversion. Loose equality may convert types while comparing; strict equality does not. Explicit conversion with Number or String makes your choice visible. Conversion is still separate from checking whether the resulting value is acceptable input.

See it in practice

These lessons pair the idea with examples you can change and run.