var counter = 0; console.log(window.counter); // 0
let counter = 0; console.log(window.counter); // undefined
Pro tip: use ```triple backticks around text``` to write in code fences