In this exercise, create a tag function named “upper” which transforms the variable values in the template string to uppercase. The code for this exercise is in the ex4.js file.
(cool music)…- Let's go ahead and open up exercise four.…Exercise four gives you this silly example,…and you need to write a tag function…that uppercases only the values, not the strings.…So, you're gonna need to modify line eight…to use the tag function,…put in your interpolated expressions appropriately…in those places where the underscores are,…and then, write your upper function to do the looping…just exactly the same way I just showed you.…
This course was created by Frontend Masters. It was originally released on 01/10/2017. We're pleased to host this training in our library.
- The arrow function
- Arrow function variations
- Closures and explicit blocks
- Default values
- Using the gather and spread operators
- Dumping variables
- Concise properties and methods
- Symbols, iterators, and generators
- Optimizing codes for the reader
Skill Level Intermediate
1. Arrow Functions
2. Block Scope
3. Default Values and the Gather/Spread Operators
5. Template Strings
6. Symbols, Iterators, and Generators
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.