Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. function f1WithoutUseStrict() {
  2. return this;
  3. }
  4.  
  5. function f1WithUseStrict() {
  6. 'use strict';
  7.  
  8. return this;
  9. }
  10.  
  11. console.log(f1WithoutUseStrict()); // node global object or window
  12. console.log(f1WithUseStrict()); // undefined
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement