# String Interpolation

say it: **“string in-ter-puh-LAY-shun”** **/strɪŋ ɪnˌtɜːrpəˈleɪʃən/**

Double quotes insert variable values; single quotes keep text as written.

## What is **String Interpolation**?

Double-quoted strings replace variables with their values; single-quoted strings keep text exactly as written. Use `$()` for expressions.

```powershell
$name = 'Maria'
"Hello, $name"          # Hello, Maria
'Hello, $name'          # Hello, $name
"Tomorrow: $((Get-Date).AddDays(1).DayOfWeek)"
```

Level: Apprentice · [More PowerShell terms at this level](https://www.ask-codey.com/glossary?category=powershell&level=2)

Updated: November 17, 2026

## In other subjects

- [String Interpolation in C#](https://www.ask-codey.com/glossary/string-interpolation-c-sharp)
- [String Interpolation in Java](https://www.ask-codey.com/glossary/string-interpolation)
- [String Interpolation in JavaScript](https://www.ask-codey.com/glossary/string-interpolation-javascript)

Source: https://www.ask-codey.com/glossary/string-interpolation-powershell
