stepping.js (377B)
1 "use strict"; 2 /* exported arithmetic, composition, chaining, nested */ 3 4 const obj = { b }; 5 6 function a() { 7 return obj; 8 } 9 10 function b() { 11 return 2; 12 } 13 14 function arithmetic() { 15 debugger; 16 a() + b(); 17 } 18 19 function composition() { 20 debugger; 21 b(a()); 22 } 23 24 function chaining() { 25 debugger; 26 a().b(); 27 } 28 29 function c() { 30 return b(); 31 } 32 33 function nested() { 34 debugger; 35 c(); 36 }