See more
…se local variables inside this function without accidentally overwriting existing global variables, yet still access the global variables, like so:
…ous closure. That’ll help us accomplish our goal by putting all our code in an anonymous function. (Remember: in JavaScript, functions are the only way to create new scope.)