Expected ')' (JavaScript)

You attempted to enclose an expression within a set of parentheses, but did not include the closing parenthesis. Some expression must be enclosed within a set of opening and closing parentheses. Notice the use of parentheses in the following example.

for (initialize; test; increment) {  
statement;  
}  

To correct this error

  • Add the right parentheses to the evaluation expression.