Message from JavaScript discussions

May 2017

— That's a good way

— 

In the browser VM this code does not run in strict mode

"use strict";
function myFunc () {
b = 456;
}
myFunc();

— What about with use strict inside the function?

— No effect

— Which browser?

— Chrome

— That's weird

— Yeah, I am puzzled

— Uhm....

— I will run a module instead

— Gut

— Ok, in the module it works. I never knew that about the VM haha