Var And Const |
|
There is only one single variable type in CSS: var A var may hold any number or string. Additionally there may by a const qualification; however you don't write const var in CSS but simply const. Examples: var x, y; const xMax = 80, yMax = 25; While var's may change contents during program execution,const's cannot be changed after declaration. var's and const's may be defined anywhere in CSS, as known by C++: foo() { const x = 7; for (var k=1; k < x; k++) { var y = k * 3; sysLog(y); } } | ||||||||
Copyright © IBK Landquart | Last revised by Peter Koch, 24.02.00 | << Back Top Next >> |