Would you please help me to figure out the result?
/* Q. You are working on a Store Manager program, which stores the prices in an array. You need to add functionality to increase the prices by the given amount. The increase variable is taken from user input. You need to increase all the prices in the given array by that amount and output to the console the resulting array. Use a loop to iterate through the array and increase all items. I tried to figure out the result according to my knowledge on Javascript. Thank you. */ var prices = [98.99, 15.2, 20, 1026]; //your code goes here prices[0] = 98.99; prices[1] = 15.2; prices[2] = 20; prices[3] = 1026; console.log(prices[i]); function newPrices(prices,increase){ this.prices = prices; this.increase = increase; this.newPrice = function(){ this.price = sum(prices, increase); } /* var i=0; do{ return increase; i++; } while(i<=i.length); */ var x = newPrices(prices, increase); var x.price = }