top of page
Search

String template literals

  • zakariyesahid96
  • Jan 29, 2022
  • 1 min read
  • 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.

 
 
 

Comentarios


Post: Blog2_Post
  • Facebook
  • Twitter
  • LinkedIn

©2021 by zaktech96. Proudly created with Wix.com

bottom of page