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?
I want an output like [ , , , , ,] Not like this
You need to directly print the array variable
Like this :-
var array =[2,3,5,7,9]
// excepted output :- 2,3,5,7,9
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.