How to shift a index in an array 3 positions to the right in javascript using only loops : <p>how can i shift the index's of an array 3 positions to the right , and looping the index's that reach the end of the array back to the begining of the array.
Using only loops and no functions.
Array=[5,10,30,60,50,30,20,2,5]</p>

<p>Thanks</p>
