If you want to make a variable defined in an outer function accessible to an inner function, you use the _______ keyword.

  • global
  • inner
  • outer
  • public
To make a variable defined in an outer function accessible to an inner function, you use the 'global' keyword. It indicates that the variable should be treated as a global variable.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *