DEV Community

Felix Imbanga
Felix Imbanga

Posted on

Creating Histograms ruby

Histograms can be visual representations of a hash resulting from input. An array is a data structure made up of elements all in a line.

If you have a hash with a default value, as you try to access a non-existent key, you get the default value

I need to remember when using iterations I can replace {} with the word "for" to better understand the code and comprehend instructions.

Top comments (0)

👋 Kindness is contagious

Engage with a wealth of insights in this thoughtful article, valued within the supportive DEV Community. Coders of every background are welcome to join in and add to our collective wisdom.

A sincere "thank you" often brightens someone’s day. Share your gratitude in the comments below!

On DEV, the act of sharing knowledge eases our journey and fortifies our community ties. Found value in this? A quick thank you to the author can make a significant impact.

Okay