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 , , , , ,
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)
+ 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.
+ 1
SAN [Exams], thanks a lot, your solution worked successfully. I am grateful
0
Please I hope I have done that?