Skip to content

Commit fe3403a

Browse files
authored
Update compareArrays.js
1 parent 475f279 commit fe3403a

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
'use strict'
2-
const bestDefender = ["Van Dijk", "Ramos", "Söyüncü"];
3-
const bestForward = ["Messi","Ronaldo","Salah","Neymar","Lewandowski","Suarez","Mbappe"];
4-
console.log('The length of the array is... ' + bestDefender.length);
5-
console.log('The length of the array is... ' + bestForward.length);
2+
const bestDefenders = ["Van Dijk", "Ramos", "Söyüncü"];
3+
const bestForwards = ["Messi","Ronaldo","Salah","Neymar","Lewandowski","Suarez","Mbappe"];
4+
console.log('The length of the array is... ' + bestDefenders.length);
5+
console.log('The length of the array is... ' + bestForwards.length);
66

7-
if (bestDefender.length === bestForward.length){
7+
if (bestDefenders.length === bestForwards.length){
88
console.log("They are the same!")
99
} else {
1010
console.log("Two different sizes!");
11-
}
11+
}

0 commit comments

Comments
 (0)