# Escape Sequence

A backslash code that represents a special character inside a string or character literal.

## What is **Escape Sequence** in JavaScript?

**Escape Sequence** — A backslash code that represents a special character inside a string or character literal.

```javascript
const receipt = "Tea:\t$3.00\nThanks!";
```

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

Updated: September 27, 2026

## In other subjects

- [Escape Sequence in C#](https://www.ask-codey.com/glossary/escape-sequence-c-sharp)
- [Escape Sequence in Java](https://www.ask-codey.com/glossary/escape-sequence)

Source: https://www.ask-codey.com/glossary/escape-sequence-javascript
