Update solution.js
Change `let` to `const`.
This commit is contained in:
parent
09bc924b68
commit
bddc40c467
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@ function topSalary(salaries) {
|
|||
let max = 0;
|
||||
let maxName = null;
|
||||
|
||||
for(let [name, salary] of Object.entries(salaries)) {
|
||||
for(const [name, salary] of Object.entries(salaries)) {
|
||||
if (max < salary) {
|
||||
max = salary;
|
||||
maxName = name;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue