Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

WM5 | AISHA_ATHMAN_LALI | MODULE_JS2 | WEEK2 #81

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
clear console.logs
  • Loading branch information
aishaathmanlali committed Nov 13, 2023
commit c76b47a519849e920cd5e9aa57a902c00c45dabd
4 changes: 0 additions & 4 deletions week-2/implement/contains.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ function contains(object, key) {
}
return object.hasOwnProperty(key);
}
console.log(contains({ a: 1, b: 2 }, "a"));
console.log(contains({ a: 1, b: 2 }, ""));
console.log(contains({ a: 1, b: 2 }, ["aisha", "zainab"]));



module.exports = contains;
8 changes: 0 additions & 8 deletions week-2/implement/lookup.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,6 @@ function createLookup(arrays) {
return countryCurrency;
}

console.log(createLookup(["KE", "KSH"]));
console.log(
createLookup([
["KE", "KSH"],
["TR", "TRY"],
])
);

module.exports = createLookup;

/* ======= Test suite is provided below... =====
Expand Down