Code example 5-2const tax = .07;const getCost = (itemCost, n…

Code example 5-2const tax = .07;const getCost = (itemCost, numItems) => {      const subtotal = itemCost * numItems;      const tax = 0.06;      const total = subtotal + (subtotal * tax);      return total;}const totalCost = getCost(25.00, 3);alert(“Your cost is $” + totalCost.toFixed(2) + ” including a tax of ” +          tax.toFixed(2)); Refer to code example 5-2. Which constant stores the arrow function?

Code example 5-2const tax = .07;const getCost = (itemCost, n…

Code example 5-2const tax = .07;const getCost = (itemCost, numItems) => {      const subtotal = itemCost * numItems;      const tax = 0.06;      const total = subtotal + (subtotal * tax);      return total;}const totalCost = getCost(25.00, 3);alert(“Your cost is $” + totalCost.toFixed(2) + ” including a tax of ” +          tax.toFixed(2)); Refer to code example 5-2. This code contains an error. What is it?

Code example 5-4function displayAverage(name, …grades) {  …

Code example 5-4function displayAverage(name, …grades) {   let total = 0;    for (let grade of grades) {      total += grade;   }      alert(`Average score for ${name}: ${total/grades.length}`);} Refer to code example 5-4. What will be displayed after running the following statement?displayAverage(1,2,3,4);