Get Programming with JavaScript - Listing 6.12

Listing 6.12 - Using the return value as an argument

const getHelloTo = name => `Hello to ${name}`; console.log(getHelloTo("Kandra")); console.log(getHelloTo("Dax"));