Quartz Composer JavaScript Reference © Cybero Designs  

const

Type Statement
Format const var = value | varnameN - Constant name, valueN - value of constant
Commentary
Declares a read only named constant. You can have plenty of these. Has the same scope as variables. Cannot be written to. Cannot share name with either functions or vaiables declared within the scope of the function containing the stated const.
Sample code - QC 3 JavaScript
function (__number o) main (__number p[2])
{
const a = 42
var result = new Object();
n = new Number(12.345);
result.o = ((n * a) * (p[0] * p[1]));
return result;
}

Return to the Start Page