Junior Fullstack Developer
8 Questions
Introduce Yourself.
Is JavaScript single threaded or multi-threaded ?
What are microtask and macrotask?
What does promises return ?
What will be the output of this code ? const promise = new Promise((resolve) => { console.log(1); resolve(); console.log(2); }); console.log(3); console.log(4); setTimeout(() => { console.log(5); }, 100); setTimeout(() => { console.log(6); }, 0); promise.then(() => { console.log(7); }); console.log(8);
What is middleware and how is it used ?
Write a middleware function for this code where these emails should not be allowed to login. const notAllowedEmails = ["vishal.maurya@taptalent.ai", "vikas.dubey@taptalent.ai"] router.post( "/get-user", async (req, res) => { const email = req.email return res.status(200).json() }
What is event loop ?
Aditya Kumar·May 2026