chrismiceli
11-22-2002, 01:52 AM
i made a constructor function but it is generating errors, what is wrong with my syntax
function val(value) {
this.value = value;
}
"we0" = new val("1");
it generates this error:
Error: invalid assignment left-hand side
Source File: file:///home/cpu/documents/scripts/BaneOfKreeper.html
Line: 13, Column: 6
Source Code:
"we0" = new val("1");
thanx in advanced.
function val(value) {
this.value = value;
}
"we0" = new val("1");
it generates this error:
Error: invalid assignment left-hand side
Source File: file:///home/cpu/documents/scripts/BaneOfKreeper.html
Line: 13, Column: 6
Source Code:
"we0" = new val("1");
thanx in advanced.