Essential JavaScript

Going Further

Count Letters Kata

Given a word and a letter, return the number of times that letter appears in that word.

For example, if the word is "intersection" and the letter is "i", the result should be 2.

Code Editor

Click "Run Tests" to execute your function and see the test results below.

Test Results

Run your code to see test results

Console Output

// Console output will appear here...

0 output lines