Trying to put these arrays into a table and am getting stuck and cant figure out what do do next? Any help would be awesome! thanks!!
THis is the code i have so far
What i need is a table of 12 columns and 11 rows showing: Code (as in the index of the product and price) and then product and then price. So it would be code,product,price,code,product,price,code,product,price,code,product,price
if that makes sense….
PRODUCT_LIST = new Array(‘Salad Server Set’, ‘Party Serviette Holder’,
‘Tea Set’, ‘Mixing Bowl Set’, ‘Knife Block Set’, ‘Coffee Capsule Holder’,
‘Plastic Sensor Soap Pump’, ‘Storage Bucket’, ‘Oven Glove’, ‘Apron’,
‘Biscuit Barrel’, ‘Chopping Board’, ‘Carioca Cups’, ‘Soup Bowls’,
‘Elevate Wood Turner’, ‘Pasta Machine’, ‘Teapot’, ‘Cake Pop Scoop’,
‘Cookbook Stand’, ‘Chocolate Station’, ‘Coffee Maker’, ‘Pepper Mill’,
‘Salt Mill’, ‘Glass Storage Jar’, ‘Measuring jug’, ‘Kitchen Scale’,
‘Tenderiser’, ‘Pizza Docker’, ‘Knife Sharpener’, ‘Steel Cork Opener’,
‘Steel Garlic Press’, ‘Steel Can Opener’,
‘Stainless Steel Crank Flour Sifter’, ‘Mineral Stone Mortar and Pestle’,
‘Citrus Cather’, ‘Cherry & Olive Pitter’, ‘Multi Grater-Detachable’,
‘Stainless Steel Colander’, ‘Steel Pizza Pan’, ‘Pop Container’);
PRICE_LIST = new Array(18.70, 11.95, 39.95, 49.95, 99.95, 29.95, 79.95, 24.95,
9.95, 29.95, 39.95, 12.95, 54.95, 43.00, 19.95, 144.95, 29.95, 9.95,
29.95, 34.95, 29.00, 84.94, 84.95, 4.95, 19.95, 39.95, 34.95, 19.95,
79.95, 36.95, 34.95, 36.95, 33.95, 74.95, 19.95, 27.95, 26.95, 44.95,
12.95, 22.95);
function renderProductCatalogue () {
for(i=0,i<PRODUCT_LIST.length;i++);
}