0
Please tell me in Java script what is the problem in this coding
function main() { var increase = parseInt(readLine(), 10); var prices = [98.99, 15.2, 20, 1026]; //your code goes here for(var i=0; i<=prices.lenght-1; i++){ prices[i]=prices[i]+increase; } console.log(prices); }
2 Réponses
+ 2
Check 'length' spelling? // ? lenght x
+ 1
Thanks you