GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing arcade.makecode.com — Sequencing SequencingBy calling one function after another, in sequence, you can have the program do different things in sequence. The semicolonIn JavaScript, the semicolon (;) is used to terminate (or end) a statement. However, in most cases, the semicolon is optional and can be omitted. So both code sequences below are legal: The empty statementIn JavaScript, there is the concept of an empty statement, which is whitespace followed by
a semicolon in the context where a statement is expected.
So, the following code is an infinite loop
followed by a call to
No 'empty' statementsTo avoid this problem, we don't allow a program to contain an empty statement, such as shown above. If you really want an empty statement, you need to use curly braces to delimit an empty statement block:
|
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |