Ad

Using your programming language of choice from the drop-down, write a function that takes a string and returns the count of instances of the letter "a" in the string.

The comparison should be case-insensitive, i.e. both "a" and "A" should count.

For example, "abcABC" should return 2.

function count(string) {

}