# 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.

```javascript
const quantityText = "3";
const quantity = Number(quantityText);
```

Level: Novice · [More JavaScript terms at this level](https://www.ask-codey.com/glossary/subjects/javascript/novice)

Updated: September 27, 2026

Source: https://www.ask-codey.com/glossary/type-coercion
