Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Sep 21st, 2018
83
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.20 KB
| None
|
0
0
raw
download
clone
embed
print
report
function vowels(str) {
let vowelCount = 0;
[...str].forEach((char, i) => {
if (/[AEIOUaeiou]/.test(char) === true) {
vowelCount += 1;
}
});
return vowelCount;
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
вставка в лист
C++ | 21 min ago | 1.21 KB
Burger with Stacks
CSS | 21 min ago | 1.30 KB
Program Pengembangan Sistem Deteksi Banjir Be...
C++ | 30 min ago | 0.97 KB
BetterDamageForIsaac
Lua | 41 min ago | 0.93 KB
zad_daa
C++ | 41 min ago | 1.55 KB
Untitled
PHP | 44 min ago | 0.30 KB
Cupcake with Stacks
CSS | 47 min ago | 0.76 KB
💲 G2A.com Free Gift Card Guide Mar 2024 💲
GetText | 48 min ago | 0.45 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!