• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

6.7. Statements

An ECMA Script statement is similar to Java statements and it can be labeled by a “label set.” ECMA Script supports the following types of statements: Block, VariableStatement, Empty-Statement, ExpressionStatement, IfStatement, IterationStatement, ContinueStatement, BreakStatement, ReturnStatement, WithStatement, LabelledStatement, SwitchStatement, ThrowStatement, and TryStatement.

The evaluation of a statement returns the tuple <type, completion, value, target> where type is the type of the statement evaluated, completion is the completion state which is either normal or throws an exception, value is the value returned by this statement, and target is the target for a branching statement often referring within a label set (mostly used by iterative statements).


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint