var cnum = [4, 5, 2, 7]; d = cnum[0] + cnum[2]; alert("add two array numbers = " d); // 42 ? It seems like JS is treating the cnum's as strings. How can I create arrays that I can preform math on? Thanks, Jim
var cnum = [4, 5, 2, 7]; d = cnum[0] + cnum[2]; alert("add two array numbers = " +d);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)