How come this works and returns 123 twice:
function hello(){
  hello123 = 123
  console.log(hello123)
}
hello()
console.log(hello123)
- How come I don't need to declare the variable 
hello123withvar - How come the variable persists outside the function? Is that because it's declared on window with the function being part of that scope?
 
Thanks