85
rated 0 times
[
92]
[
7]
/ answers: 1 / hits: 68595
/ 8 Years ago, mon, may 16, 2016, 12:00:00
I wanted to try using template literals and it’s not working: it’s displaying the literal variable names, instead of the values. I am using Chrome v50.0.2 (and jQuery).
Example
console.log('categoryName: ${this.categoryName}ncategoryElements: ${this.categoryElements} ');
Output
${this.categoryName}
categoryElements: ${this.categoryElements}
More From » template-literals