Tavant Interview Question

loop over objects in javascript