daily pastebin goal
45%
SHARE
TWEET

Untitled

a guest Mar 26th, 2019 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var obj = { a: 1, b: 2 };
  2. Object.setPrototypeOf(obj, {c: 3});
  3. Object.defineProperty(obj, 'd', { value: 4, enumerable: false });
  4.  
  5. // what properties will be printed when we run the for-in loop?
  6. for(let prop in obj) {
  7.     console.log(prop);
  8. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top