Content deleted Content added
m remove uncited claim |
SimLibrarian (talk | contribs) m rm contraction Tags: Mobile edit Mobile app edit iOS app edit App section source |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 4:
== Usage ==
Unless it
<syntaxhighlight lang="cfm">
<cfscript>
</cfscript>
</syntaxhighlight>
Line 41:
<syntaxhighlight lang="cfm">
<cfscript>
</cfscript>
</syntaxhighlight>
Line 93:
</syntaxhighlight>
=== Try /
<syntaxhighlight lang="javascript">
try {
Line 121:
=== Looping ===
==== For
<syntaxhighlight lang="javascript">
for (i=1; i
WriteOutput(array[i]);
}
Line 139:
</syntaxhighlight>
==== While
<syntaxhighlight lang="javascript">
x = 0;
while (x
x = x + 1;
WriteOutput(x);
Line 149:
</syntaxhighlight>
==== Do /
<syntaxhighlight lang="javascript">
x = 0;
do {
x = x + 1;
WriteOutput(x);
} while (x
// Outputs: 1
</syntaxhighlight>
==== Looping over an
<syntaxhighlight lang="javascript">
for (item in array) {
|