Skip to content
Open
Changes from all commits
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
26 changes: 25 additions & 1 deletion hakuna-matata
Original file line number Diff line number Diff line change
@@ -1 +1,25 @@
it's a wonderful phrase
// HakunaMatata class implementation
class HakunaMatata {
constructor() {
this.worryLevel = 0;
}

noWorries() {
this.worryLevel = 0;
return "Problem-free philosophy";
}

getPhilosophy() {
return "It means no worries for the rest of your days";
}

applyPhilosophy(problem) {
console.log(`${problem}? Hakuna Matata!`);
return true;
}
}

// Example usage
const myLifePhilosophy = new HakunaMatata();
myLifePhilosophy.noWorries();
myLifePhilosophy.applyPhilosophy("Feeling down");