There was an error while loading. Please reload this page.
1 parent 1774f1a commit c7f91ebCopy full SHA for c7f91eb
Examples/callstack_example.js
@@ -0,0 +1,20 @@
1
+function takeShower(){
2
+ return "Showering!"
3
+}
4
+
5
+function eatBreakfast(){
6
+ let meal = cookFood()
7
+ return `Eating ${meal}`
8
9
10
+function cookFood(){
11
+ let items = ["Oatmeal", "Eggs", "Protein Shake"]
12
+ return items[Math.floor(Math.random()*items.length)];
13
14
+function wakeUp() {
15
+ takeShower()
16
+ eatBreakfast()
17
+ console.log("Ok ready to go to work!")
18
19
20
+wakeUp()
0 commit comments