please dont rip this site

JavaScript: The Definitive Guide

Previous Chapter 5
Statements
Next
 

5.14 Summary of JavaScript Statements

This chapter has introduced each of the statements of the JavaScript language. Table 5.1 summarizes these statements, their syntax, and their purpose.

Table 5.1: JavaScript Statement Syntax
Statement Syntax Purpose
break

break;

Exit from the innermost loop.

continue

continue;

Jump to top of containing loop.

empty

;

Do nothing.

for

for (initialize ; test ; increment)
    statement

Easy-to-use loop.

for/in

for (variable in object)
    statement

Loop through properties of object.

function

function funcname([arg1 [..., argn]]) {
    statements
}

Declare a function.

if/else

if (expression)
    statement1
[ else
    statement2 ]

Conditionally execute code.

return

return expression;

Return a value from a function.

var

var name_1 [ =index.html value_1 ]
    [ ..., name_n [ =index.html value_n]] ;

Declare and initialize variables.

while

while (expression)
    statement

Basic loop construct.

with

with (object)
    statement

Specify the current name space.


Previous Home Next
The Empty Statement Book Index Functions

HTML: The Definitive Guide CGI Programming JavaScript: The Definitive Guide Programming Perl WebMaster in a Nutshell

file: /Techref/language/java/script/definitive/ch05_14.htm, 6KB, , updated: 2019/10/14 15:00, local time: 2024/12/23 18:06,
TOP NEW HELP FIND: 
3.142.198.108:LOG IN

 ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://massmind.ecomorder.com/Techref/language/java/script/definitive/ch05_14.htm"> [Chapter 5] 5.14 Summary of JavaScript Statements</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

 

Welcome to ecomorder.com!

 

Welcome to massmind.ecomorder.com!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .