Skip to content

Commit

Permalink
add javascript Ltwoz (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ltwoz authored Oct 21, 2023
1 parent 4aa9334 commit 106e0b7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions JavaScript/Ltwoz.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const coffeeMachine = {
coffee: "coffee",
brew() {
console.log(`Brewing ${this.coffee}...`);
setTimeout(() => {
this.coffee = "code";
console.log(this.coffee);
}, 2000);
},
};

coffeeMachine.brew();

0 comments on commit 106e0b7

Please sign in to comment.