const Pizzas = [
{ name:"queen", w: ["🐷","🍄","🍅","🧀"] },
{ name: "cheese", w: ["🧀", "🍅"]},
{ name: "oriental", w: ["🍅","🐑","🍄","🌶"]},
{ name: "royal", w: ["🍅","🌵"]},
],
price = new Map([ ["🍅", 1], ["🐷", 2], ["🌶",2], ["🍄", 5], ["🧀", 5], ["🐑", 2], ["🌵", 10]]);
e) Donner le code pour savoir si une pizza est végétarienne ("🐷", "🐑")
f) class Promo{
constructor(pizzas, type = "dailyPizza") {
this.type = type; this.pizzas = pizzas;}
trans() {
return this.pizzas.map(function (?)
? name.toUpperCase() ?
);
}}
let p = new Promo(Pizzas), dailyPizza =p.trans();
Compléter la classe pour obtenir : dailyPizza =
["<li> QUEEN type: dailyPizza </li>",... "<li> ROYAL ...