Skip to content

Commit 9a21e07

Browse files
authored
Merge pull request #802 from CyberMew/patch-4
Update solution.js
2 parents 09bc924 + bddc40c commit 9a21e07

File tree

1 file changed

+1
-1
lines changed
  • 1-js/05-data-types/09-destructuring-assignment/6-max-salary/_js.view

1 file changed

+1
-1
lines changed

1-js/05-data-types/09-destructuring-assignment/6-max-salary/_js.view/solution.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ function topSalary(salaries) {
33
let max = 0;
44
let maxName = null;
55

6-
for(let [name, salary] of Object.entries(salaries)) {
6+
for(const [name, salary] of Object.entries(salaries)) {
77
if (max < salary) {
88
max = salary;
99
maxName = name;

0 commit comments

Comments
 (0)