Question: TitleNav Footer var componenti - MakeComponent(hammer, 10, 2.00); document.getElementById(first).appendChild(component1); var component2 = MakeComponent(wrench, 5, 6.00); document.getElementById(second).appendChild(component2): componenti.setPrice(15): component2.stockid = screwdriver, and the following MakeComponent.js (referenced

and the following MakeComponent.js (referenced by the page).. function MakeComponent(iStockid, iQty, iPrice) { var comp = document.createElement("div"); comp.stockId = iStockid; var qty = iQty: var price = iPrice; comp.setStockid = function (newid) { comp.stockid = newid; show(); }; comp.setPrice = function (newPrice) { price = newPrice; show(); comp.calc = function () { return aty price; function show() { comp.innerHTML = label(); } var label = function () { return "id:" + comp.stockId + } showO; return comp value $" + comp.calc(); } What would you see in the page when rendered by the browser
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
