In most of the cases when we iterate over the elements of a hash we use the keys function. At least that's my preferred method.

However, sometimes, epecially when the hash is big, we migh prefer to use the each function.