Loading ...
Sorry, an error occurred while loading the content.

Function Statements

Expand Messages
  • douglas@crockford.com
    JSLint now considers function statements to produce something that is more const than var. That means that you will get a warning for attempting change the
    Message 1 of 1 , Sep 14, 2010
    • 0 Attachment
      JSLint now considers function statements to produce something that is more const than var. That means that you will get a warning for attempting change the value created by a function statement.

      So

      function waa() {
      waa = 1;
      }

      produces a warning.
    Your message has been successfully submitted and would be delivered to recipients shortly.