Here is the JavaScript code to make this happen:

//First, we make a class, using object properties to describe each object....

function Song(name, year, timesPlayed) { = name;
	this.yearRecorded = year;
	this.timesPlayed = timesPlayed; }
//Then create a method like this.  All Person objects will be able to invoke this
Song.prototype.announce = function(){
    alert("The next song to be played is " +;

// Make some new objects with 'new'

var WildThing = new Song("Wild Thing", 1966, 30);