0

Pls I need help on the store manager project on JavaScript lesson. I know you won't see any output from the link that I sent.

I use console.log() to output my code because I couldn't use document.write(), I got the values correctly, but it was displayed differently from the "sololearn expected output". Pls how do I fix that? https://code.sololearn.com/W6Id5nmU1Wkd/?ref=app. I want an output like [ , , , , ,] Not like this , , , , ,

10th Apr 2021, 12:45 AM
Okafor Okwuchukwu Charisma
Okafor Okwuchukwu Charisma - avatar
4 Respuestas
+ 3
You need to directly print the array variable Like this :- var array =[2,3,5,7,9] console.log(array) // excepted output :- 2,3,5,7,9 for(i=0;i<=3;i++){ prices[i]=prices[i]+increase } console .log(prices)
10th Apr 2021, 5:59 AM
SAN
SAN - avatar
+ 1
In order for the community to find the problem in the code, you fist have to attach that code with your question. You can do it now by editing the question and attaching your code as a code-playground link.
10th Apr 2021, 12:49 AM
Arsenic
Arsenic - avatar
+ 1
SAN [Exams], thanks a lot, your solution worked successfully. I am grateful
10th Apr 2021, 5:03 PM
Okafor Okwuchukwu Charisma
Okafor Okwuchukwu Charisma - avatar
0
Please I hope I have done that?
10th Apr 2021, 2:12 AM
Okafor Okwuchukwu Charisma
Okafor Okwuchukwu Charisma - avatar