Tavant interview question

loop over objects in javascript