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.
Import the functions getDataByRole() and getDataByCompany() from salaryData.js using named import syntax.
Import salaryData from salaryData.js using the default import syntax.
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.
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.