this is my code:
function MyThing(va, vb)
{
this.va = va
this.vb = vb
}
var NewThing = new MyThing(4)
NewThing[0].va = "varA"
NewThing[0].vb = "VarB"
NewThing[1].va = "varA"
NewThing[1].vb = "VarB"
.....
How do I do NewThing.Length?
I would think it would be 4? But it's null
The door to life is never locked, but few have the knowledge to open it.
function MyThing(va, vb)
{
this.va = va
this.vb = vb
}
var NewThing = new MyThing(4)
NewThing[0].va = "varA"
NewThing[0].vb = "VarB"
NewThing[1].va = "varA"
NewThing[1].vb = "VarB"
.....
How do I do NewThing.Length?
I would think it would be 4? But it's null
The door to life is never locked, but few have the knowledge to open it.