Check out example codes for "typescript string concatenation best practice". It will help you in understanding the concepts better.

Code Example 1

str = `${year}-${paddedMonth}-${day} ${hours}:${minutes}:${seconds} `;

Learn ReactJs, React Native from akashmittal.com