Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var song = {
- name: "Perfect day",
- artist: "Lou Reed",
- genre: "Rock",
- length: "3:44",
- start: function() {
- alert("And now, " + this.artist + " singing " + this.name);
- },
- stop: function() {
- alert("Hope you enjoyed " + this.name + " singed by " + this.artist);
- }
- };
- song.start();
- song.stop();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement