Type Coercion
JavaScript's conversion of a value from one type to another, either automatically or explicitly.
What is Type Coercion in JavaScript?
Type Coercion — JavaScript's conversion of a value from one type to another, either automatically or explicitly.
const quantityText = "3";
const quantity = Number(quantityText);
Level: Novice · More JavaScript terms at this level
Updated