JavaScript Debugging Breakpoints

From w3schools.com, Experiment by Teeratus_R

The Scope Panel

Open DevTools (F12). Set a breakpoint inside the test() function to see local vs global scope.