Have an array that needs sorting? Perhaps you have a range of condominiums and you want to know the highest and lowest priced properties? Check it.
1 2 3 4 5 6 7 8 | # here's my array @condo_prices = [1000, 75, 2000, 10000] # returns 75 @condo_prices.min # returns 10000 @condo_prices.max |
Add New Comment
Thanks. Your comment is awaiting approval by a moderator.
Do you already have an account? Log in and claim this comment.
Add New Comment