Template Literals
Which of the following is NOT a valid template literal usage?
The invalid template literal usage is `${function() { return 'Dynamic'; }}`. This is invalid because template interpolation requires an expression that evaluates to a value, but the code in the example just declares a function without calling it. The function declaration by itself doesn't return a value that can be converted to a string. To make this valid, you would need to immediately invoke the function: `${(function() { return 'Dynamic'; })()}` or use an arrow function with implicit return: `${(() => 'Dynamic')()}`. Alternatively, if the function is already defined elsewhere, you would simply call it: `${getDynamicText()}`. The other options are all valid template literal usages, demonstrating variable interpolation, expression evaluation, and multi-line strings.