Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width">
- <title>JS Bin</title>
- </head>
- <body>
- <script id="jsbin-javascript">
- var pet = {
- name: "Daisy",
- species: "cat",
- favoriteToy: "laser pointer",
- age: 5,
- // Add your method here. Don't forget to add a comma after the age above!
- makeNoise: function() {
- console.log("Meow!");
- }
- };
- pet.makeNoise();
- </script>
- <script id="jsbin-source-javascript" type="text/javascript">var pet = {
- name: "Daisy",
- species: "cat",
- favoriteToy: "laser pointer",
- age: 5,
- // Add your method here. Don't forget to add a comma after the age above!
- makeNoise: function() {
- console.log("Meow!");
- }
- };
- pet.makeNoise();</script></body>
- </html>
Add Comment
Please, Sign In to add comment