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

987Warning for duplicate function

Expand Messages
  • woomla
    Nov 2, 2009
    • 0 Attachment
      This code jslint fine, but the second aa function is not accessible.
      Can't jslint give a warning for this?


      "use strict";


      var NN = '';

      function aa(name)
      {
      NN = name;
      }

      function aa(boolean)
      {
      NN = boolean ? 'true' : 'false';
      }

      aa('yes');
    • Show all 2 messages in this topic