You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fun fact about min() and max() is that these functions can help you to sort in alphabetical order! If a string is passed as an argument, min() will return the first letter (alphabetically) and max() the last one (somewhat zetabetically). And if you specify more than one value, min() will return the first string in alphabetical order and max(), in contrast, the last one. For example, min("alpha", "omega") gives you "alpha", while max("alpha", "omega") returns "omega".
For Example:
max("gloomy", "grey", "green")-"grey"
min("gloomy", "grey", "green")- "gloomy"
The text was updated successfully, but these errors were encountered:
Fun fact about
min()
andmax()
is that these functions can help you to sort in alphabetical order! If a string is passed as an argument, min() will return the first letter (alphabetically) andmax()
the last one (somewhat zetabetically). And if you specify more than one value,min()
will return the first string in alphabetical order and max(), in contrast, the last one. For example, min("alpha", "omega") gives you "alpha", while max("alpha", "omega") returns "omega".For Example:
max("gloomy", "grey", "green")-
"grey"
min("gloomy", "grey", "green")-
"gloomy"
The text was updated successfully, but these errors were encountered: