String Interpolation in TypeScript

It’s called template literals in Javascript

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
let value = 100;
console.log(`The size is ${ value }`);
let value = 100; console.log(`The size is ${ value }`);
let value = 100;
console.log(`The size is ${ value }`);

References
https://stackoverflow.com/questions/45399951/how-to-perform-string-interpolation-in-typescript
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals