Skip to content

Instantly share code, notes, and snippets.

@eeddaann
Last active February 4, 2021 11:35
Show Gist options
  • Save eeddaann/36485d1eada1cf314ebb819409355f4e to your computer and use it in GitHub Desktop.
Save eeddaann/36485d1eada1cf314ebb819409355f4e to your computer and use it in GitHub Desktop.
ODH dictionary
class meow {
constructor(options) {
this.maxexample = 2;
this.word = '';
}
async displayName() {
return "אנגלית טכנית"
}
async findTerm(word) {
let dict = {
"jigsaw":"מסור אנכי,גקסון",
"drill":"מקדחה",
"slot bit":"חריץ"
}
this.word = word.toLowerCase();
if(this.word in dict) {
return dict[this.word];
} else {
return "המילה לא נמצאה במילון"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment