Guest User

Untitled

a guest
Oct 19th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. <script>
  2.  
  3. var english = {
  4. house: "A building for human habitation",
  5. tree:"A woody perennial plant",
  6. street: "A public road in a city or town"
  7. };
  8.  
  9. var americanEnglish = Object.create(english, {
  10. elevator: "A platform or compartment housed in a shaft for raising and lowering people or things to different floors or levels",
  11. truck: "A wheeled vehicle, in particular"
  12. })
  13.  
  14. var britishEnglish = Object.create(english);
  15. britishEnglish.lift ="Raise to a higher position or level";
  16. britishEnglish.lorrie ="A large, heavy motor vehicle for transporting goods or troops";
  17.  
  18. console.log(americanEnglish.elevator);
  19.  
  20. </script>
Add Comment
Please, Sign In to add comment