Destroy the objects

by obobruyko

JavaScript

/* 4: given the following code, and assuming that each defined object has a
 'destroy' method, how would you destroy all of the objects contained in the myObjects object?*/

var myObjects = {
  thinger : new myApp.Thinger(),
  gizmo : new myApp.Gizmo(),
  widget : new myApp.Widget()
};