0

Strict mode introduces some kinds of breaking changes. one of them is :

Functions can only be declared at the top level of a scope.

I am not able to understand this. Can anyone please describe it with an example?

Chris Hamilton
  • 555
  • 5
  • 22
Mukund Kumar
  • 21,413
  • 18
  • 59
  • 79
  • 1
    Duplicate of: http://stackoverflow.com/questions/24573061/uncaught-syntaxerror-in-strict-mode-code-functions-can-only-be-declared-at-top – Sean Feb 23 '17 at 14:21
  • 1
    Review Mozilla developer network: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode – Dipak Feb 23 '17 at 14:23
  • 1
    http://javascriptissexy.com/javascript-variable-scope-and-hoisting-explained/ – Dipak Feb 23 '17 at 14:23

0 Answers0