Skip to content
This repository was archived by the owner on May 14, 2024. It is now read-only.
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update compairingInfinities.js
  • Loading branch information
heartwhite authored May 6, 2019
commit 915f56b2893f8d88f4646f527941104150eea35b
12 changes: 9 additions & 3 deletions Week1/compairingInfinities.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
// store diffrent types of data in one array, and compare the infinitives
let allTypesInsideArray = ['abdullah ', 33 , true]
let allTypesInsideArray = ['abdullah ', 33 , true];
console.log(allTypesInsideArray);


console.log('2 examples for compairing infinities')
if(6/0 === 10/0){
let infinitive1 = 6/0;
let infinitive2 = 10/0;
if(infinitive1 === infinitive2){
console.log(true);
} else{
console.log(false);
}

console.log(6/0 == 10/0);
console.log(infinitive1 == infinitive2);

/*in exercise of infinitives i used == and === both
because in this case i wanted to see each option.
i guess types are same but i just anted to see */