Skip to content

Latest commit

 

History

History
15 lines (8 loc) · 495 Bytes

File metadata and controls

15 lines (8 loc) · 495 Bytes

Template Literals

The greeting() function returns a string with variables in it using string addition (sometimes called string "interpolation")

But there is another, more modern way to concatenate strings with variables in them...

Using Template Literals! 🥳

Can you refactor this function so it returns the string using a template literal?

To run the tests:

        npm test template_literals.test.js

Hint: make sure you're in the correct folder before running these commands.