for (var prop in window) {
  if (window.hasOwnProperty(prop)) {
    console.log(`prop: ${prop} ${window[prop]}` );
  }
}