Created
March 27, 2020 13:30
-
-
Save gsampath127/9db29995ad2322249819b1f6033fb171 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async function PrepareLunch(){ | |
let soup = PourSoup(); | |
console.log("soup is ready"); | |
let salad = await PrepareSalad(); | |
console.log("salad is ready"); | |
let sEgg = await PrepareScrambledEgg(); | |
console.log("scrambled egg is ready"); | |
let burger = await FryBuns(2); | |
AddVeggies(burger); | |
DressBurger(burger); | |
console.log("burger is ready"); | |
let lemon = PourLemon(); | |
console.log("lemon juice is ready"); | |
console.log("Lunch is ready!"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment