https://tutorial.eyehunts.com/js/javascript-global-variable-example-code/
JavaScript global variable | Example code