This course has been updated! We now recommend you take the JavaScript: The Recent Parts course.

Check out a free preview of the full ES6: The Right Parts course:
The "Exercise 4" Lesson is part of the full, ES6: The Right Parts course featured in this preview video. Here's what you'd learn in this lesson:

In this exercise, you will create a tag function named “upper” which transform the variable values in the template string to uppercase. The code for this exercise is in the ex4.js file.

Get Unlimited Access Now

Transcript from the "Exercise 4" Lesson

>> [MUSIC]

>> Kyle Simpson: All right, let's go ahead and open up exercise 4. Exercise 4 gives you this silly example and you need to write a tag function that uppercase is only the values not the strings, okay? So you're going to need to modify line 8 to use the tag function.

[00:00:24] Put in your interpolated expressions appropriately in those places where the underscores are. And then write your upper function to do the looping just the exactly the same way I just showed you.