a) In your own words, explain the concept of variable scope.Include one or more code fragments that you write for thisdiscussion post to help illustrate your case. Clearly mark asappropriate any code fragments as either \"script\" code or\"function\" code, and use comments in your code to note the localityof each variable at least the first time the variable appears inthe script or function. If a variable is local in scope, be sure tonotate what the variable is local to (i.e. the script, a particularfunction, etc.). Your code for this discussion post should includeat least two different local variables, and at least one globalvariable.
b) Compare and contrast separate function files with anonymousfunctions. In your opinion, when may it be best to use one over theother? Can you use them interchangeably in all circumstances?