Kor
07-16-2003, 12:14 PM
can i increment a variable by 2, or 3 or whichever (not by one, as usualy, say, i++) ?
and (somehow linked problem), which is the simpliest way to calculate an array variable sum? (of course, not by simply adding +, 'cose actually I have a very long array)
var bla = newArray(10)
bla[0]= 45678;
bla[1]= 342;
bla[2]= 56466;
.
.
.
bla[10]= 5656;
function calculatesum() {
??
and (somehow linked problem), which is the simpliest way to calculate an array variable sum? (of course, not by simply adding +, 'cose actually I have a very long array)
var bla = newArray(10)
bla[0]= 45678;
bla[1]= 342;
bla[2]= 56466;
.
.
.
bla[10]= 5656;
function calculatesum() {
??