TypeScriptStringtemplate literal
split

template literalString

Partial<T>

Embeds expressions within string literals using backtick syntax.

Syntax

`Hello, ${name}!`

Example

Enter values below to update the example in real time.

const
name
greeting
Hello
console
const name = "World";
const greeting = `Hello, ${name}!`;
console.log(greeting); // "Hello, World!"