oldoc63 / learningFS

Web development back and front
0 stars 0 forks source link

Create the workAroundModule #1030

Open oldoc63 opened 2 years ago

oldoc63 commented 2 years ago

You now have radio-style elements for the different companies and roles represented in the salary dataset. Try selecting a combination of company and role and you'll see that the data isn't being calculated. Instead, all four values are showing up as $0.

Open up workAroundModule.js where you will find four functions that each calculate a different data value that we want to display. They are currently incomplete.

To complete these four functions, you will need some data from salaryData.js.

Note: The reason these functions are in a separate module from salaryData.js is to achieve separation of concerns. salaryData.js is concerned only with providing access to raw data while workAroundModule.js is concerned with digging into the data to find precise values.