this is my daughters homework she asked me to help and now im stuck she has worked it out and is making me look stupid need to get my selfrespect back even if i have to cheat(i used my brain and im asking you) the code is as follows but i cannot get it to work
var plantHeights = [15,16,17,18,19];
var plantNumbers = [2,1,6,4,2];
var product = new Array(5);
for (var count = 1; count <= productArray; count = count + 1)
{
product = plantHeights * plantNumbers;
}
document.write( product);
i cannot get the product to write out the plantHeights * plantNumbers and store them in a new array can anybody help