when I type printOrders nothing comes up in console but undefined…
Truck.prototype.printOrders=function(){
// syntax, object.keys(obj) returns array of a given objects
// properties
var customerArray=Object.keys(this.datastoreObject.getAll());
console.log('Truck # '+ this.truckId+ ' has pending orders: ');
customerArray.forEach(function(id){
console.log(this.datastoreObject.get(id));
}
.bind(this)
);
};