What are the first and second arguments of a tag function in a tagged template literal?

  • The template string and an array containing the evaluated expressions.
  • The evaluated expressions and the template string.
  • The tag function itself and the template string.
  • The template string and the number of expressions.
In a tagged template literal, the tag function is called with the template string as the first argument and an array containing the evaluated expressions as the second argument. This enables customized processing of the template and its expressions.
Add your answer
Loading...

Leave a comment

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