JS runtime is a container which includes all different pieces to execute JavaScript :- JS engine, Web API Environment, Callback Queue, Microtask Queue, Event Loop.
So every synchronous code is executed in JS engine that is Call Stack and every asynchronous code is executed in Web API environment (timeout, DOM, fetch).