Habilelabs interview question

What will be logged first console.log('data 1'); setTimeout(function(){ console.log('data 2'); }, 0); console.log('data 3');

Interview Answer

Anonymous

Jun 15, 2019

Even a newbie can do this data1 data3 data2 Read about event loop, how they handle async code