You should utilize this sample when your code just isn't now in an async perform or at the highest level overall body of a module. To put it differently, when you are just testing a bunch of code inside of a js file and making use of instruments like Are living Server, RunJs, or any other sort of JavaScript playground to look at the console window,