Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Array Rotation JS
TZinovieva
Jan 26th, 2023
74
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
JavaScript
0.21 KB
| None
|
0
0
raw
download
clone
embed
print
report
function
arrayRotation
(
arr
,
rot
)
{
for
(
let i
=
0
;
i
<
rot
;
i
++
)
{
let currentElement
=
arr
[
0
]
;
arr.
shift
(
)
;
arr.
push
(
currentElement
)
;
}
console.
log
(
arr.
join
(
` `
)
)
;
}
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Swapzone Glitch ⭐Working⭐
JavaScript | 3 sec ago | 0.32 KB
✅ Exploit 500$ in 15 Minutes F
JavaScript | 9 sec ago | 0.32 KB
Exchange Exploit
JavaScript | 11 sec ago | 0.32 KB
Free Crypto Method (NEVER SEEN BEFORE)
JavaScript | 18 sec ago | 0.32 KB
⭐ Instant Profit Method ⭐ P
JavaScript | 19 sec ago | 0.32 KB
⭐ Instant Profit Method ⭐
JavaScript | 26 sec ago | 0.32 KB
✅ Exploit 500$ in 15 Minutes
JavaScript | 48 sec ago | 0.32 KB
⭐Crypto Exchange Profit Method⭐
JavaScript | 56 sec ago | 0.32 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!