Question 12
Which of the following is true considering the JavaScript code below (please select all that apply)
const foo = () => console.log('First');
const bar = () => setTimeout(() => console.log('Second'),2000);
const baz = () => console.log('Third');bar();baz();foo();
口 the setTimeout function is invoked last
口 the setTimeout function is invoked first
口 the callback is first pushed to the queue and then to the call stack
口 the callback is first pushed to the web API and then to queue
口 The other four options are false
the setTimeout function is invoked last the setTimeout function is invoked first the callback is first pushed to the queue and then to the call stack the callback is first pushed to the web API and then to queue The other four options are false