Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 14e1fc0

Browse files
authored
Update e10-compare arrays.js
1 parent 1890591 commit 14e1fc0

File tree

1 file changed

+5
-19
lines changed

1 file changed

+5
-19
lines changed

Week1/homework/js-excercises/e10-compare arrays.js

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,13 @@
1-
// 'use strict'
2-
3-
// const myArray1=['HYF', 25, '#bestclassever', {instructor: 'Wilgert'}]
4-
// const myArray2=['study', 'read', 'hangout', 'eat', 'drink', 'live', 101]
5-
6-
// console.log(myArray1.length)
7-
// console.log(myArray2.length)
8-
9-
// if (myArray1.length==myArray2.length) {
10-
// console.log('Same size!')
11-
// } else{
12-
// console.log('Two different sizes')
13-
// }
14-
151

162
'use strict'
173

18-
const JS_class25=['HYF', 25, '#bestclassever', {instructor: 'Wilgert'}]
19-
const Hobbies=['study', 'read', 'hangout', 'eat', 'drink', 'live', 101]
4+
const jsClass25=['HYF', 25, '#bestclassever', {instructor: 'Wilgert'}]
5+
const hobbies=['study', 'read', 'hangout', 'eat', 'drink', 'live', 101]
206

21-
console.log(JS_class25.length)
22-
console.log(Hobbies.length)
7+
console.log(jsClass25.length)
8+
console.log(hobbies.length)
239

24-
if (JS_class25.length==Hobbies.length) {
10+
if (jsClass25.length==hobbies.length) {
2511
console.log('Same size!')
2612
} else{
2713
console.log('Two different sizes')

0 commit comments

Comments
 (0)