Statements and declarations

JavaScript code is built from statements and declarations, which can contain expressions. This reference groups the constructs used to control execution and declare bindings. A statement can span multiple lines, and a line can contain multiple statements.

Statements and declarations by category

For an alphabetical listing see the sidebar on the left.

Control flow

return

Specifies the value to be returned by a function.

break