0

I need help with the store manager question

function main() { var increase = parseInt(readLine(), 10); var prices = [98.99, 15.2, 20, 1026]; for (var i = 0; i < prices.length; i++) { prices[i] += increase; } console.log(prices); } why this is not worK? I don't got it

11th Jul 2023, 8:28 AM
Moses Park
Moses Park - avatar
3 Answers
+ 4
Is this your whole code? If so, you need to call your function.
11th Jul 2023, 10:29 AM
Ausgrindtube
Ausgrindtube - avatar
+ 3
Happy I could help! All the best with your coding journey!
15th Jul 2023, 8:12 AM
Ausgrindtube
Ausgrindtube - avatar
+ 1
Yes while code Thanks
15th Jul 2023, 3:43 AM
Moses Park
Moses Park - avatar