0

1

9. Write a JavaScript function that accepts two arguments, a string and a letter and the function will count the number of occurrences of the specified letter within the string. Sample arguments : 'w3resource.com', 'o' Expected output : 2 .

16th Dec 2016, 11:17 PM
Nashwan Aziz
Nashwan Aziz - avatar
2 odpowiedzi
+ 3
Using Sololearn comunity to solve you task you got for your exam? ;)
16th Dec 2016, 11:59 PM
Majstor_Gile
Majstor_Gile - avatar
0
9. Write a JavaScript function that accepts two arguments, a string and a letter and the function will count the number of occurrences of the specified letter within the string. Sample arguments : 'w3resource.com', 'o' Expected output : 2 .
17th Dec 2016, 6:39 PM
Nashwan Aziz
Nashwan Aziz - avatar