You should utilize this sample Whenever your code will not be now in an async function or at the very best level physique of a module. Put simply, for anyone who is just screening lots of code within a js file and utilizing instruments like Live Server, RunJs, or another style of JavaScript playground to watch the console window, wrap all of your c