Guest User

Untitled

a guest
Aug 16th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width">
  6. <title>JS Bin</title>
  7. </head>
  8. <body>
  9.  
  10. <script id="jsbin-javascript">
  11. var pet = {
  12. name: "Daisy",
  13. species: "cat",
  14. favoriteToy: "laser pointer",
  15. age: 5,
  16. // Add your method here. Don't forget to add a comma after the age above!
  17. makeNoise: function() {
  18. console.log("Meow!");
  19. }
  20. };
  21.  
  22. pet.makeNoise();
  23. </script>
  24.  
  25.  
  26.  
  27. <script id="jsbin-source-javascript" type="text/javascript">var pet = {
  28. name: "Daisy",
  29. species: "cat",
  30. favoriteToy: "laser pointer",
  31. age: 5,
  32. // Add your method here. Don't forget to add a comma after the age above!
  33. makeNoise: function() {
  34. console.log("Meow!");
  35. }
  36. };
  37.  
  38. pet.makeNoise();</script></body>
  39. </html>
Add Comment
Please, Sign In to add comment