commit
9a21e07fba
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@ function topSalary(salaries) {
|
||||||
let max = 0;
|
let max = 0;
|
||||||
let maxName = null;
|
let maxName = null;
|
||||||
|
|
||||||
for(let [name, salary] of Object.entries(salaries)) {
|
for(const [name, salary] of Object.entries(salaries)) {
|
||||||
if (max < salary) {
|
if (max < salary) {
|
||||||
max = salary;
|
max = salary;
|
||||||
maxName = name;
|
maxName = name;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue