Guest User

Untitled

a guest
Mar 21st, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. Object.prototype.x = "Honey Thakuria"
  2.  
  3. var a = "Name"
  4. console.log(a.x) // "Honey Thakuria"
  5.  
  6. // As we defined x at the top of prototype chain,hence it will be inherited to every child element
Add Comment
Please, Sign In to add comment