Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
JS exam part 2 - Count Smileys
/****************************** :D * Count Smileys ******************************* :D */ function countSmileys(input) { // your code here } /* Don't edit the following. It is for validating your code */ var a; while (a=readline()) {print(countSmileys(a.split(" ")));} /* 1 <= valid faces: [":)"] 2 <= valid faces: [":-|", ":-", ":~D", ";)"] 8 <= valid faces: [":)", "=)", ";)", ";-)", ";~)", ":D", "=D", ";D", ";-D", ";~D"] */
run
|
edit
|
history
|
help
0
Triangle
Looping Strings
TaskhelTemplate
javascript check undefined
Loops
J
Set(), union, intersection, difference
Star wars ep 3. limit
challenge
Lovedek_ellovesi_tavolsag_kalkulator