Announcement

Collapse
No announcement yet.

What are template literals

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • What are template literals

    What are template literals



    Template literals or template strings are string literals allowing embedded expressions. These are enclosed by the back-tick (`) character instead of double or single quotes. In E6, this feature enables using dynamic expressions as below,


    Code:
    var greeting = `Welcome to JS World, Mr. ${firstName} ${lastName}.`

Related Topics

Collapse

Working...
X