Skip to content

min() and max() features  #7

@akrish4

Description

@akrish4

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions