var foo = {};
document.body.innerHTML = console.log = location.hash = 'Hi ' + '<br> ' + foo.bar + '<br> ' + foo.baz;
setTimeout(function()
{
foo.baz = foo["bar"] = [];
foo.bar.push(new Date);
foo.baz.push(new Date);
document.body.innerHTML = console.log = location.hash = 'Hi ' + '<br> ' + foo.bar + '<br> ' + foo.baz},
5000);
See Question&Answers more detail:os