|
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 |
| - |
15 | 1 |
|
16 | 2 | 'use strict'
|
17 | 3 |
|
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] |
20 | 6 |
|
21 |
| -console.log(JS_class25.length) |
22 |
| -console.log(Hobbies.length) |
| 7 | +console.log(jsClass25.length) |
| 8 | +console.log(hobbies.length) |
23 | 9 |
|
24 |
| -if (JS_class25.length==Hobbies.length) { |
| 10 | +if (jsClass25.length==hobbies.length) { |
25 | 11 | console.log('Same size!')
|
26 | 12 | } else{
|
27 | 13 | console.log('Two different sizes')
|
|
0 commit comments