Basics

Challenges

Classes

Cookies

Debugging

Events

External Files

Flow Control

Forms

Functions

Html Elements

Installation

Interfaces

Keywords

Modules

Namespaces

Operators

Reference Files

String

Types

TypeScript - Template Literals

Introduced with JavaScript ECMA 2015 ("6"). Works just like c# string interpolations.

Tip: notice the back-tick characters instead of a single quote.


let name = "bob";
demo1 = document.getElementById("demo1");
demo1.innerHTML = `New game starting for player: ${name}.`;