Challenge: Solution Review
This lesson will explain the solution to the problem from the previous coding challenge.
We'll cover the following...
We'll cover the following...
Solution #
Explanation
In this example, we have the subject class Auctioneer that stores the list of all bidders to whom it announces the bidding prices.
class Auctioneer
{
constructor(){
this.bidderList = []
}
//code...
}
The constructor initializes the list bidderList that stores all the bidders participating in the auction. ...