about | help | code help+videos | done | prefs |
biggestAlphabetically
Imagine you have three words: "apple", "banana", and "cherry". You want to find out which word comes last if you were to put them in alphabetical order, like in a dictionary. This function checks each word to see which one is the biggest. It does this by comparing each word to the others: biggestAlphabetically("apple", "banana", "cherry") → "cherry" biggestAlphabetically("apple", "banana", "cherry") → "cherry" biggestAlphabetically("dog", "cat", "elephant") → "elephant" ...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