+ 1

Sole

Some one shoulp please help me out function main() { var increase = parseInt(readLine(), 10); var prices = [98.99, 15.2, 20, 1026]; //your code goes here prices += 9 console.log(prices); } What am I doing wrong

3rd Aug 2021, 3:30 AM
Ejeh Wayne
Ejeh Wayne - avatar
7 Antworten
+ 7
You can use a for loop to iterate prices and add increase to each price for(i=0;i<4;i++){ prices[i]+=increase } console.log(prices)
3rd Aug 2021, 4:31 AM
Simba
Simba - avatar
+ 1
It's working fine What issues are u facing
3rd Aug 2021, 3:48 AM
Pariket Thakur
Pariket Thakur - avatar
0
Have u call the function main()
3rd Aug 2021, 3:41 AM
Pariket Thakur
Pariket Thakur - avatar
0
HrCoder yeap .. this is my last project nd its giving me issue.. store manager jscrpt
3rd Aug 2021, 3:44 AM
Ejeh Wayne
Ejeh Wayne - avatar
0
HrCoder how did u do it
3rd Aug 2021, 3:50 AM
Ejeh Wayne
Ejeh Wayne - avatar
0
HrCoder and where can i get my codes that you like on my profile,... it keeps showing connect to the internet on my profile
3rd Aug 2021, 3:52 AM
Ejeh Wayne
Ejeh Wayne - avatar
0
Option 1. Go to code playground, click on on top left corner "My Codes" tab. option2. Go to your profile scroll down select "see activity " and then you will see "bits " click on it
3rd Aug 2021, 3:56 AM
Pariket Thakur
Pariket Thakur - avatar