Skip to main content

Statement is not terminated

In This Article

Note

The Statement is not terminated code issue is JavaScript specific.

CodeRush Classic shows the Statement is not terminated code issue if a statement does not have a semicolon at the end.

#Fix

Add a semicolon to the end of statement.

#Purpose

Highlight statements without a semicolon at the end, because JavaScript statements must end with a semicolon.

#Example

multiplier = GetMultiplier()

Fix:

multiplier = GetMultiplier();