You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The suggestion seems to be that the template literals would be all about strings; there's only examples that result in strings, and phrases like "final string value" and "generating the string from the literal" are used in what should be a general context, but the tag functions can return any object, and there's obvious use cases where they'd return regexp objects, DOM nodes, etc.
The text was updated successfully, but these errors were encountered:
Chapter in question: https://github.com/getify/You-Dont-Know-JS/blob/master/es6%20%26%20beyond/ch2.md#template-literals
The suggestion seems to be that the template literals would be all about strings; there's only examples that result in strings, and phrases like "final string value" and "generating the string from the literal" are used in what should be a general context, but the tag functions can return any object, and there's obvious use cases where they'd return regexp objects, DOM nodes, etc.
The text was updated successfully, but these errors were encountered: