# Strict Equality (===)

A comparison that requires equal values and matching types without coercion.

## What is **Strict Equality (===)** in JavaScript?

**Strict Equality (===)** — A comparison that requires equal values and matching types without coercion.

```javascript
const enteredCode = "42";
const expectedCode = 42;
const matches = enteredCode === expectedCode;
```

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/strict-equality
