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

Skip to content

Commit 915f56b

Browse files
authored
Update compairingInfinities.js
1 parent ed54c37 commit 915f56b

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

Week1/compairingInfinities.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
// store diffrent types of data in one array, and compare the infinitives
2-
let allTypesInsideArray = ['abdullah ', 33 , true]
2+
let allTypesInsideArray = ['abdullah ', 33 , true];
33
console.log(allTypesInsideArray);
44

55

66
console.log('2 examples for compairing infinities')
7-
if(6/0 === 10/0){
7+
let infinitive1 = 6/0;
8+
let infinitive2 = 10/0;
9+
if(infinitive1 === infinitive2){
810
console.log(true);
911
} else{
1012
console.log(false);
1113
}
1214

13-
console.log(6/0 == 10/0);
15+
console.log(infinitive1 == infinitive2);
16+
17+
/*in exercise of infinitives i used == and === both
18+
because in this case i wanted to see each option.
19+
i guess types are same but i just anted to see */

0 commit comments

Comments
 (0)