0

If I have a function:

function myFunction() {
  var x = "variable defined inside of myFunction";   
}

Is there any trick I can use to access x from outside of it?

I read about variables being scoped but was just wondering if there was any way around it.

Phil
  • 157,677
  • 23
  • 242
  • 245
Coder868
  • 3
  • 3

0 Answers0