Guest User

Untitled

a guest
Jan 18th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. let x = [];
  2. x['Monday'] = 'Work';
  3. x['Tuesday'] = 'More Work';
  4.  
  5. console.log(x) //[Monday: "Work", Tuesday: "More Work"]
  6. console.log(x.Monday) //"Work"
  7. console.log(x.Tuesday) //"More Work"
  8.  
  9. [] instanceof Object
  10. > true
Add Comment
Please, Sign In to add comment