1window.myGlobalVariable = "I am totally a global Var"; //define a global variable
2var myOtherGlobalVariable="I too am global as long as I'm outside a function";
1const color = 'blue'
2
3const returnSkyColor = () => {
4 return color; // blue
5};
6
7console.log(returnSkyColor()); // blue