Home > Blockchain >  How can I concatenate two strings using template literals in typeScript?
How can I concatenate two strings using template literals in typeScript?

Time:11-21

How can I replace with template literals in this case please?

.....
filters:[
{ divName: 'CSS'
  levels: [{key: 'GCSS', val:this.name   '(GCSS)'}]
}
],
...

CodePudding user response:

try this:

`${this.name}(GCSS)`

The backticks are important.

Greetings, Flo

  • Related