« first day (2836 days earlier)      last day (1253 days later) » 

 
6 hours later…
 
5 hours later…
 
9 hours later…
10:46 PM
I want to create a table as opposed to a list that contains Products, prices, and discounts but I am lost. This is my code so far but I don't know how to put it a table format with 20% discount on each price. <body>

<ol id="prices">
</ol>

<script>

var products = ["Echo Dot", "Echo Plus", "Echo Auto", "Echo Show", "Echo Link"];
var prices = [49.99, 69.99, 129.99, 229.99, 1099.99];
var discount = []
toDisplay = "";
total = 0;

for (var i=0; i<products.length; i++){
toDisplay+="<li>"+products[i]+" - "+prices[i]+"</li>";
 
1 message moved from JavaScript
 

« first day (2836 days earlier)      last day (1253 days later) »