Issue
C# uses string interpolation
int value = 100;
Console.WriteLine($"The size is {value}.");
Output:
The size is 100.
How to do the same thing in TypeScript?
Solution
In JavaScript you can use template literals:
let value = 100;
console.log(`The size is ${ value }`);
Answered By - Nitzan Tomer
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.