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