There are several typescript methods you can use to print a string in TypeScript’s console and one of them is to enclose the string (${hello}) within another string within two backticks `:
var hello = 'Hello Wolrd'
console.log(`I said ${hello}`);
Another method is to concatenate two strings as follows:
var hello = 'Hello Wolrd'
console.log("I said " + hello);
Both methods will work but for those of you that often mistake ‘ with ` then it is better to stick with the concatenate method.
Both methods will produce the following same outcome:-
I said Hello World