Now let's look at the loadYears method.
The goal of this method is to generate a list of years, which will then be passed to the view for rendering. Those years could be selected as start year and end year in the user interface. They'll make it possible for the user to select the date range of data.
Here's the code of the method:
loadYears(): void { console.log("Loading the years"); const retVal: number[] = []; const ...