Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- console.log("Soup Menu @ Cafe Jase");
- var soup, soupDjour, price;
- soup = new Array ('Broccoli Cheddar', 'French Onion', 'Chicken Noodle',
- 'Cream of Mushroom', 'Tomato', 'Cream Of Chicken', 'Clam Chowder', 'Egg Drop',
- 'Vegetable Minestrone', 'Beef Minestrone', 'Matzo Ball');
- var randNum = Math.floor(Math.random()*soup.length);
- soupDjour = soup[randNum];
- price = new Array (1.99, 2.49, 2.99, 3.49, 3.99);
- /*var randNum2 = Math.floor(Math.random()*price.length);*/
- function randomPrice() {
- return Math.floor(Math.random()*price.length);
- };
- var randNum2 = randomPrice();
- for (var i = 0; i < soup.length; i++) {
- console.log(soup[i]);
- }
- console.log(soup)
- console.log("Soup of the Day " + soupDjour + " " + price[randNum2]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement