summaryrefslogtreecommitdiff
path: root/deps/node/deps/node-inspect/examples/break.js
blob: d5f265788140902d396765051dc40bdb1d8898f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
const x = 10;
let name = 'World';
name = 'Robin';
function sayHello() {
  if (x > 0) {
    console.log(`Hello ${name}`);
  }
}
sayHello();
debugger;
setTimeout(sayHello, 10);

function otherFunction() {
  console.log('x = %d', x);
}
setTimeout(otherFunction, 50);