Write a function named mostRepetitions that receives 3 parameters:
string1string2and returns the string that has the most occurrences of the specified letter. If both have
the same number of occurrences return string1.
string1
=string2
=letter
=Unlock all functions
The first 10 functions are free. Get lifetime access to all 100 with a one-time payment — no subscription.
Upgrade to Pro