index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>WorkAround</title>
<link rel="stylesheet" type="text/css" href="index.css" />
</head>
<body>
<main>
This file has been truncated. show original
main.js
// TODO: Add your import statements here.
import {getRoles, getCompanies} from './modules/salaryData.js';
import {getAverageSalaryByRole,getAverageSalaryByCompany, getSalaryAtCompany, getIndustryAverageSalary} from './modules/workAroundModule.js';
// TODO: Get the companies and roles using the salaryData module.
const companies = getCompanies();
const roles = getRoles();
// Create input buttons for every company and role represented in the data.
renderInputButtons(companies, 'company');
This file has been truncated. show original
salaryData.js
const salaryData = [
{ role: 'CTO', company: 'Big Data Inc.', salary: 320000},
{ role: 'Technical Lead', company: 'Big Data Inc.', salary: 230000},
{ role: 'Software Engineer II', company: 'Big Data Inc.', salary: 180000},
{ role: 'Software Engineer I', company: 'Big Data Inc.', salary: 140000},
{ role: 'CTO', company: 'Medium Data Inc.', salary: 215000},
{ role: 'Technical Lead', company: 'Medium Data Inc.', salary: 165000},
{ role: 'Software Engineer II', company: 'Medium Data Inc.', salary: 140000},
{ role: 'Software Engineer I', company: 'Medium Data Inc.', salary: 115000},
{ role: 'CTO', company: 'Small Data Inc.', salary: 175000},
This file has been truncated. show original
There are more than three files. show original