Answer :
The paragraph element containing the value of summarize(mypizza):
var cartbox = document. getElementById("cart-box");
var mypizza = "The best pizza in town!";
var para = document. createElement("p");
var node = document. createTextNode(mypizza);
para. appendChild(node);
cartbox. appendChild(para);
Code Explanation:
- We first create a new <p> element.
- Then we create a text node.
- Then we append the text node to the <p> element.
- Finally, we append the <p> element to the <div> element with id="cart-box".
Learn more about programming:
https://brainly.com/question/16397886
#SPJ4