In this sample code:
if(n==0&&args>1 ){
for(i=num;args> i+1;i++){
s[i].length = 0;
opt = document.create Element('OPTION ');
s[i].appendChild(op t);
opt.value = "";
opt.text = "\74-- Vælg --";
}
return true
};
the if statement is ended by a ";" but I have seen other if statments that
do not end with that. Why is if statement sometimes ended by a ";".?
if(n==0&&args>1 ){
for(i=num;args> i+1;i++){
s[i].length = 0;
opt = document.create Element('OPTION ');
s[i].appendChild(op t);
opt.value = "";
opt.text = "\74-- Vælg --";
}
return true
};
the if statement is ended by a ";" but I have seen other if statments that
do not end with that. Why is if statement sometimes ended by a ";".?
Comment