topic description
how to loop the output in positive order and then in reverse order,
for example: 123321123321
sources of topics and their own ideas
the idea is to give an array to 3 and reverse it
.related codes
arr=[3,2,1]
for(i=0;i<18;iPP){
if(i%3==0){
arr.reverse()
}
console.log(arr[i%3])
}
what result do you expect? What is the error message actually seen?
the above code looks perfect, but why ask questions, because a function is needed in the specific application
y=func (x)
Xerox 1
Xerox 2
Xerox 3
3
4
5
6
such an infinite cycle, I can"t write any more, please ask everyone for help