pastebin
Add a new paste
View all pastes
Change language
Dutch
English
French
Russian
menu
URL Shortener
Multiple URL shortener
browser info
Whois IP and domain lookup
Capture a Website screenshot
Disqus Chatroom
Registration
pastebin
Paste Search Dynamic
Recent pastes
person check
4 hours ago
node add
5 hours ago
ZonedDateTime
5 hours ago
nid
5 hours ago
lowestCars highestCars
5 hours ago
Entity id
5 hours ago
binkey
5 hours ago
node access
5 hours ago
node comment
5 hours ago
FastCode
5 hours ago
numbers
let numbers =
[
2
,
3
,
5
,
7
,
11
,
13
,
17
,
18
,
19
]
;
let str =
""
;
for
(
let i =
0
; i < numbers.
length
; i++
)
{
if
(
i %
2
===
1
)
continue
;
str +=
(
str ===
""
?
""
:
"-"
)
+ numbers
[
i
]
;
}
//str is "2-5-11-17"
console.
log
(
`str
is
"${str}"
`
)
;
Parsed in 0.002 seconds