Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Jan 19th, 2018
76
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.17 KB
| None
|
0
0
raw
download
clone
embed
print
report
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
.filter(num => num % 2 !== 0) // [1, 3, 5, 7, 9]
.map(num => (num + 1) * 2) // [4, 8, 12, 16, 20]
.reduce((sum, num) => sum + num, 0) // 60
Add Comment
Please,
Sign In
to add comment
Public Pastes
fsm converter v1
Python | 6 min ago | 12.60 KB
Untitled
Python | 8 min ago | 0.26 KB
CCO Training Contest 4 Three Nodes
C++ | 10 min ago | 8.76 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 💰
GetText | 22 min ago | 0.38 KB
GPA Calculate
Python | 25 min ago | 3.50 KB
6
Python | 46 min ago | 0.20 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 59 min ago | 0.39 KB
Luck Hub
Lua | 1 hour ago | 0.10 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!