To insert a variable into a template literal, use the ${} __________.

  • Parentheses ()
  • Curly braces {}
  • Square brackets []
  • Angle brackets <>
To insert a variable into a template literal, use the ${} syntax with curly braces. This allows for dynamic content within the string, making it more flexible and readable.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *