We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 475f279 commit fe3403aCopy full SHA for fe3403a
1 file changed
Week1/homework/js-exercises/compareArrays.js
@@ -1,11 +1,11 @@
1
'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);
+const bestDefenders = ["Van Dijk", "Ramos", "Söyüncü"];
+const bestForwards = ["Messi","Ronaldo","Salah","Neymar","Lewandowski","Suarez","Mbappe"];
+console.log('The length of the array is... ' + bestDefenders.length);
+console.log('The length of the array is... ' + bestForwards.length);
6
7
-if (bestDefender.length === bestForward.length){
+if (bestDefenders.length === bestForwards.length){
8
console.log("They are the same!")
9
} else {
10
console.log("Two different sizes!");
11
-}
+}
0 commit comments