Hello.
Quick question…how do you add the value of certain slots in an array.
For instance with this code:
[CODE]
function convertToString(){
var first_example={};
first_example = readCookie(first_example);
var first_pics = first_example[“whatever1”].toString();
var second_pics = first_example[“whatever2”].toString();
var third_pics = first_example[“whatever3”].toString();
var fourth_pics = first_example[“whatever4”].toString();
var first_array = first_pics.split(“,”);
var second_array = second_pics.split(“,”);
var third_array = third_pics.split(“,”);
var fourth_array = fourth_pics.split(“,”);
alert[COLOR=”Blue”](eval(first_array[1] + first_array[0]))[/COLOR];
}
..I’m trying to get the sum of the part highlighted in blue…and I know that what I have is wrong…so how would I
accomplish this feat..?..