Loading topic
${}, when it runs, and the mistakes people make most often with it.3 min read${}. It also assumes you know how \n works in single- and double-quoted strings and can use split, map, and join.3 min read${} interpolation, and that you know how backslash escapes such as \n and \" work in single- and double-quoted strings.3 min read${} substitutions. It also assumes you know what objects, arrays, and methods are in JavaScript. The question here is what happens after a substitution's expression is evaluated, because the result has to become text before it can be insert3 min read${} interpolation works and how values are converted to strings. You should also be comfortable with arrow functions and the array methods map and join.3 min read${} interpolation works, how functions and rest parameters (...args) behave, and how Array.prototype.reduce works. Earlier chapters covered how a plain template literal turns its parts into one string. A tagged template does not do that joining itself. It give3 min readstrings array and its values, as covered in the chapter on tagged templates. It also assumes you are comfortable with escape sequences such as \n and \t in ordinary string literals.3 min readstrings array and the values rest parameter, and how nested template literals work. You should also know the basics of reduce and instanceof.3 min readstrings array and the values arguments, and that you know the strings.raw property. It also uses WeakMap, a map whose keys must be objects and are held weakly, so a cached entry can be garbage-collected once nothing else ref3 min readstrings array and a list of values, and that strings.raw holds the uninterpreted source text. Both were covered in the earlier chapters on tagged templates and raw strings. Here you will see what happens when the source text conta3 min read