How would you write a named function that displays a sentence with two parameters values inserted in an alert box?
How would you write a named function that displays a sentence with two parameters values inserted in an alert box?
A. function (size, topping) {
window.alert("Your free " + size + " pizza topped with " + topping " is on its way!");
}
B. pizzaConf function(size, topping) {
window.alert("Your free " + size + " pizza topped with " + topping " is on its way!");
}
C. function pizzaConf(size, topping) {
window.alert("Your free " + size + " pizza topped with " + topping " is on its way!");
}
D. function (size, topping) {
return size;
}