Exercise 1: Tagged Template

Test your knowledge of the tagged template by doing this challenge.

Problem statement

Let’s implement a tagged template named stripMargin that removes all leading spaces and all indentations on the new lines. Also, the tagged template should convert all expressions to uppercase.

Sample input and output

The sample input and output are given below:

Input

Get hands-on with 1200+ tech skills courses.