Originally Posted by jmrker
When you make an assignment to the evenOdd variable,
you are using an element position in an empty array1 ... hence the NaN error.
What is it that you are really trying to accomplish?
Yes You have reason... no sense, i'm wake up this morning and my brain asked me the answer
This is the final problem
function exchangeSymmetric ()
var arrayPrincipal = [4, 2, 13, 0, 5];
var arrayEven = ;
var arrayOdd = ;
for (i = 0; i < arrayPrincipal.length; i++)
var evenOdd = arrayPrincipal [i];
var remainder = evenOdd%2;
if (remainder == 0)
arrayEven [i] = arrayPrincipal [i];
arrayOdd [i] = arrayPrincipal [i];
alert ("This is Array Even" + " " + arrayEven);
alert ("This is Array Odd" + " " + arrayOdd);
This is work!
Only one problem, between the number that is the " comma " " , " !!! Don t know how to remove!!!!