Blog

Template Strings
Posted on September 10, 2020 in JavaScript by Matt Jennings

Template Strings areĀ also called String Interpolation, and used in other programming languages like C#.

Code example:

var name = "Kyle Simpson";
var email = "getify@nullgmail.com";
var title = "Teacher";

var msg = `Welcome to this class! Your
${title} is ${name}, contact: ${email}`;
/*
Welcome to this class! Your
Teacher is Kyle Simpson, contact getify@nullgmail.com.
*/

Leave a Reply

To Top ↑