Why do I get NaN?

wxdqz

New Member
The problem code is as follows:

var CBA = 0

for (var AddBA = 0; AddBA < NoBeds; AddBA ++)
{
CBA = CBA + PropTaxBA[AddBA]
}

PropTaxBA is an array containing a set of numbers defined earlier in the program.

I want to add the numbers in PropTaxBA together and store them in CBA.

But CBA ends up as NaN.

What have I done wrong?
 
Top