I have the following variable declared at the top level of the script:
var region = “southwest”;
When running
console.log(region)
I'm getting the following error:
VM1094:1 Uncaught ReferenceError: region is not defined at :1:13
Not sure what is causing this given the variable is global.