Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Replace Repeating Chars JS Fundamentals
TZinovieva
Mar 8th, 2023
(
edited
)
167
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
replaceRepeatingChars
(
str
)
{
let result
=
''
;
for
(
let i
=
0
;
i
<
str.
length
;
i
++
)
{
if
(
str
[
i
]
!==
str
[
i
+
1
]
)
{
result
+=
str
[
i
]
;
}
}
console.
log
(
result
)
;
}
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
✅ MAKE $900 INSTANTLY
JavaScript | 1 sec ago | 0.32 KB
✅ MAKE $9OO INSTANTLY V
JavaScript | 11 sec ago | 0.32 KB
⭐Crypto Exchange Profit Method⭐ 9
JavaScript | 22 sec ago | 0.32 KB
✅ Make $1500 in 20 minutes
JavaScript | 27 sec ago | 0.32 KB
ChangeNOW Bug (Get more on BTC swaps) H
JavaScript | 31 sec ago | 0.32 KB
✅ MAKE $500 IN 15 MIN
JavaScript | 34 sec ago | 0.32 KB
Swapzone Glitch ⭐Working⭐
JavaScript | 42 sec ago | 0.32 KB
✅ Exploit 500$ in 15 Minutes F
JavaScript | 44 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!