To append a string to the end of another string in TypeScript, you can use the concatenation operator + or the concat() method.
Using + operator:
index.ts141 chars5 lines
Using concat() method:
index.ts147 chars5 lines
In both cases, the output will be the same concatenated string of str1 and str2, which is "Hello, World!".
gistlibby LogSnag