We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 729cb54 commit 58d35b4Copy full SHA for 58d35b4
script.js
@@ -39,17 +39,18 @@ const mashPotatoes = [
39
// addFood(steak[i], '#steak')
40
// }
41
42
-//Iteration 1 using callbacks -- Try to streamline with for loops
+//Iteration 1 using callbacks -- Try to streamline with recursion
43
addFood(steak[0], '#steak', function(){
44
addFood(steak[1], '#steak', function(){
45
46
})
47
48
49
50
-//Iteration 2 using then
+//Iteration 2 using then -- Try to streamline with recursion
51
addFood(mashPotatoes[0], '#mashPotatoes').then(res => {
52
addFood(mashPotatoes[1], '#mashPotatoes').then(res => {
53
+
54
55
56
0 commit comments