index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>WorkAround</title>
<link rel="stylesheet" type="text/css" href="index.css" />
<script type="module" src="main.js" defer></script>
</head>
<body>
<main>
This file has been truncated. show original
main.js
// TODO: Add your import statements here.
import { getCompanies, getRoles } from "./salaryData.js";
import {
getAverageSalaryByRole,
getSalaryAtCompany,
getIndustryAverageSalary,
getAverageSalaryByCompany,
} from "./workAroundModule.js";
// TODO: Get the companies and roles using the salaryData module.
const companies = getCompanies();
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