From w3schools.com, Experiment by Teeratus_R
Open DevTools (F12). Set a breakpoint inside the test() function to see local vs global scope.