pause-points.js (558B)
1 function funcb(msg) { 2 console.log(msg) 3 } 4 5 function a() {return true} 6 function b() {return false} 7 8 function statements() { 9 debugger; 10 { funcb(); funcb(); } 11 console.log("yo"); console.log("yo"); 12 debugger; debugger; 13 } 14 15 function flow() { 16 debugger; 17 if (true) console.log("hi") 18 var i = 0; 19 while(i++ < 2) console.log(i); 20 } 21 22 function sequences() { 23 debugger; 24 25 const a = { 26 a: 1 27 } 28 29 const b = [ 30 1, 31 funcb() 32 ] 33 34 funcb({ 35 a: 1, 36 }) 37 } 38 39 function expressions() { 40 debugger 41 a() ? b() : b() 42 const y = ` ${funcb()} ${funcb()}`; 43 }