// Define the method that we prototyped function verifyOracle(){ // Check to see if the type property we added is set to a valid value if(this.type == "Oracle"){ return true; }else{ return false; } } // Create a new property and method of the DbPool object. DbPool.prototype.type = null; DbPool.prototype.isOracle = verifyOracle; // Create a pool of connections var myPool = new DbPool("ORACLE", "mySID", "myApp", "appsPWD", "myTNS"); // Using the prototype we defined, assign the type property myPool.type = "Oracle"; // Check the type of the connection to see if it is valid if(myPool.isOracle()){ write(myPool + " has a valid type of " + myPool.type); }else{ write(myPool + " has an invalid type of " + myPool.type); }