Ajax-loader-large-white
Create a Histogram
What You'll Be Building

In this project, we'll build a program that takes a user's input, then builds a hash from that input. Each key in the hash will be a word from the user; each value will be the number of times that word occurs. For example, if our program gets the string "the rain in Spain falls mainly on the plain," it will return

the 2
falls 1
on 1
mainly 1
in 1
rain 1
plain 1
Spain 1

A visual representation of data like this is called a histogram.

Instructions

Hit Save & Submit Code to start building your own histogram!

script.rb