about | help | code help+videos | done | prefs |
findLetter
Determine if a string called letter is in another string original, assume the letter is a String of length 1. DO NOT use the built-in string method find! You must return the index of the leftmost occurrence of the letter in the original string, or a -1 if it isn't found. findLetter('fish', 'f') → 0 findLetter('fish', 'F') → -1 findLetter('fish', 'h') → 3 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Copyright Nick Parlante 2017 - privacy