The requested page is not available for the requested platform. You are viewing the content for Default platform.

Statement is not terminated

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();