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

2793Re: Unexpected '('

Expand Messages
  • junkernaught
    Feb 17, 2012
    • 0 Attachment
      OK, the new warning makes more sense. Thank you!

      --- In jslint_com@yahoogroups.com, "douglascrockford" <douglas@...> wrote:
      >
      > --- In jslint_com@yahoogroups.com, "junkernaught" <camomilk@> wrote:
      > >
      > > This code gives me an error, I'm not sure why:
      > >
      > > function charAt(sValue, index) {
      > > return sValue.charAt(index) - '0';
      > > }
      > >
      > > Message:
      > > Problem at line 2 character 25: Unexpected '('.
      > >
      > > Changing the code to this works fine:
      > >
      > > function charAt(sValue, index) {
      > > return sValue.charAt(index);
      > > }
      >
      > That warning wasn't very helpful. Please try it now.
      >
    • Show all 3 messages in this topic