Array and Hash blog

6.9.2015

Arrays are numbered indexes that where each index contains information. Hashes contain "key value pairs", so each node of information is labelled in a specific way. Think of a dictionary- how each "word" has a "definitin". The word would be the key and the definition the value. I think arrays are a more general purpose solution, I have worked quite a bit with arrays in the past. Hashes are more specialized structures for when you need to easily access things based on keys or if you want to build the hash so that sonmeone can be able to easily look things up in the hash using the keys.