Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function f1WithoutUseStrict() {
- return this;
- }
- function f1WithUseStrict() {
- 'use strict';
- return this;
- }
- console.log(f1WithoutUseStrict()); // node global object or window
- console.log(f1WithUseStrict()); // undefined
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement