traversing object in javascript code example Example: object traversal javascript for (var prop in obj) { obj[prop] = 'xxx'; }