Games Node.js Loop Quest One chef, one stove

Level 3

Last in, first out

a calls b, and b calls c. Each one logs after its call returns.

function c() { console.log('c'); }function b() { c(); console.log('b'); }function a() { b(); console.log('a'); }a();console.log('main');

1. Predict the output

Tap the lines in the order you think they print.

  1. 1…
  2. 2…
  3. 3…
  4. 4…