Skip to content

Commit bddc40c

Browse files
authored
Update solution.js
Change `let` to `const`.
1 parent 09bc924 commit bddc40c

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)