Exercise 10 · Chapter: SetsOptional+50 XP
Tag Manager
You start with these tags:
let tags = new Set(["javascript", "coding", "fun"]);
Read an action (add or remove) and a tag name from input. Perform the action, then print all tags sorted alphabetically.
Example: if action is add and tag is games:
coding fun games javascript
Need a hint?
3 available · costs 5 XP each
javascript
Output
Run your code to see the output here.