Update solution.js

Change `let` to `const`.
This commit is contained in:
CyberMew 2019-02-13 15:40:31 +08:00 committed by GitHub
parent 09bc924b68
commit bddc40c467
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;