-
Notifications
You must be signed in to change notification settings - Fork 0
/
qno34.js
11 lines (11 loc) · 938 Bytes
/
qno34.js
1
2
3
4
5
6
7
8
9
10
11
"use strict";
// Qno.34
// Pizzas: Think of at least three kinds of your favorite pizza. Store these pizza names in a array, and then use a for loop to print the name of each pizza.
// • Modify your for loop to print a sentence using the name of the pizza instead of printing just the name of the pizza. For each pizza you should have one line of output containing a simple statement like I like pepperoni pizza.
// • Add a line at the end of your program, outside the for loop, that states how much you like pizza. The output should consist of three or more lines about the kinds of pizza you like and then an additional sentence, such as I really love pizza!
Object.defineProperty(exports, "__esModule", { value: true });
let favourite_pizzas = ["Spicy Beef", "Fajita", "BBQ Chicken"];
for (let Pizza of favourite_pizzas) {
console.log(`I like ${Pizza} Pizza!.`);
}
console.log("Eating pizza calms my soul and my tummy :) !.");