Advertisement
Guest User

Untitled

a guest
Jul 18th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. (function f1() {
  2. var a = 1, b = 1;
  3. var x = y = 2;
  4. })();
  5. (function f2() {
  6. let j = 1, k = 1;
  7. let r = s = 2;
  8. })();
  9.  
  10. //what are the values for a, b, x, y, j, k, r, s in the global scope?
  11. //which of these variables will exist on the window/global object?
  12. console.log(global.s);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement