Intermediate
JavaScript
Q59 / 100
What is tagged template literals?
Correct! Well done.
Incorrect.
The correct answer is B) A function called with a template literal, receiving the string parts and interpolated values as separate arguments
B
Correct Answer
A function called with a template literal, receiving the string parts and interpolated values as separate arguments
Explanation
sql`SELECT * FROM users WHERE id = ${id}` calls sql(strings, id). Used by styled-components, graphql-tag, and SQL query builders.
Progress
59/100