Share via


Expected '}'

You did not include the right brace that marks the end of the function body, loop, block of code, or object initializer. An example of this error would be a for loop with only the left brace marking the body of the loop.

To correct this error

  • Add the right brace that marks the ending of the function, loop, block, or object initializer.

See also

Function Object
Controlling Program Flow