1

In chrome function in brakets like below one throws error. Anybody can explain that behavior?

(function x () {return 4;})
x();

throws

 Uncaught ReferenceError: x is not defined

In firefox and IE it works properly. I mean x is defined

norbi123
  • 41
  • 1
  • 8

0 Answers0