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