Hi,
What is the difference between
resolve a;
and
resolve (a);
In first case, I get an error in the log as “Script Error: SyntaxError: Unexpected identifier”.
In second case, it works just fine.
thx,
Hi,
What is the difference between
resolve a;
and
resolve (a);
In first case, I get an error in the log as “Script Error: SyntaxError: Unexpected identifier”.
In second case, it works just fine.
thx,
Hi there,
The resolve function expects to be given a single argument which should be a string. The argument is passed to the function in brackets. In the first instance you get the SyntaxError because the brackets are missing and therefore no argument is being given to the function.