Tech Off Post

Single Post Permalink

View Thread: missing ) after argument list
  • User profile image

    W3bbo wrote:
    candseeme wrote: Remove those two and belive me
    Try it

    That wouldn't work.

    The ECMAScipt (colloquially known as "Javascript") specification requires all method calls to have parenthesis (like C#, this is to make it easy to differentiate between object Properties and Methods)

    Also the script interpreter error is specifically calling the line with the error.

    In this case, it is not a method call. setTimeout's first argument should be a reference to a function, so the () should not be included.