Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Mar 21st, 2018
82
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
function solution(number){
let result = 0;
for(let i = 0; i < number; i++) {
if ((i % 3 === 0) || (i % 5 === 0)) {
result += i;
}
}
return result;
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
Untitled
C++ | 1 min ago | 3.21 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 38 min ago | 0.39 KB
Untitled
SQL | 2 hours ago | 1.28 KB
NodeMCU Amica RC Bluino App
Arduino | 3 hours ago | 7.51 KB
at_command_sim7600_en_reg
Arduino | 3 hours ago | 4.25 KB
index.php
PHP | 4 hours ago | 3.38 KB
daftar.php
PHP | 4 hours ago | 4.10 KB
login.php
PHP | 4 hours ago | 3.49 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!