A jump statement is one, which forces the flow of execution to jump unconditionally to another location in the script.
Jump statements in JavaScript are used to terminate iteration statements.
A function call causes execution to go unconditionally to a new location (the beginning of the function's script source text block - its body) but a function call is not strictly a jump statement because the flow of control returns eventually to the line forllowing the function call.
A return statement is considered to be a jump statement.
Prev | Home | Next |
JSSTags.<tagName> | Up | K |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |