Exercise 1: Sets
Explore how to implement a BoundedSet class in JavaScript that inherits from the native Set object. Learn to manage capacity limits, handle exceptions when exceeding the set size, and practice working with inheritance and class methods to control Set behaviors.
We'll cover the following...
We'll cover the following...
Problem statement
Implement a BoundedSet that inherits from Set to achieve the desired behavior.
The object of the BoundedSet class is instantiated like so:
const set ...