rauschma / exploring-js

20 stars 0 forks source link

Chapter: Using template literals and tagged templates #14

Open rauschma opened 6 years ago

pabigot commented 4 years ago

The tagged template literal example in 19.1:

const getArgs = (...args) => args;
assert.deepEqual(
  getArgs `Count: ${5}!`,
  [['Count: ', '!'], 5] );

should probably be using

  getArgs `Count: ${num}!`,

to demonstrate the usage with the earlier template literal.

rauschma commented 4 years ago

@pabigot Each of these examples stands on its own.