Closed RazvanBugoi closed 2 years ago
function match(candidate, job) {
if (candidate.minSalary && job.maxSalary) {
return candidate.minSalary * 0.90 <= job.maxSalary
} else
throw "You don't have all the necessary parameters to do the calculation"
}
https://www.codewars.com/kata/56c22c5ae8b139416c00175d/train/javascript