top of page
Search
zakariyesahid96

String template literals

  • Used for shorting and simplifying syntax.

  • template literals allow to create strongs rosy embed expressions. Which will be evaluate, then tirned into resulting string.

For example ‘ I counted ${3+4} sheep;

would result in 7, this the shorter way instead of writing the longer syntax.


  • To note it’s important to ise the back rock and dollar sign with curly bracket to be valid.

  • Alot taken in and and glad to see a shorter syntax introduced.

1 view0 comments

Recent Posts

See All

Comments


Post: Blog2_Post
bottom of page