---
title: "Discussion on \"Ruby Fundamentals: Hashes\" | Hashnode"
description: "Discussion on \"Ruby Fundamentals: Hashes\". Hashes are basically like JavaScript objects. They are composed of key/value pairs and each key points to a specific value. For example;\na_hash = { name: \"John\", age: \"20\" }\na_hash[:age]\n# => \"20\"\nTo access data from the hash above, bracket notation ..."
url: "https://hashnode.com/posts/ruby-fundamentals-hashes/630352bb14c73b2c3b9157fd"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Ruby Fundamentals: Hashes](https://muhambiphares.hashnode.dev/ruby-fundamentals-hashes?utm_source=hashnode&utm_medium=feed)

Hashes are basically like JavaScript objects. They are composed of key/value pairs and each key points to a specific value. For example; a\_hash = { name: "John", age: "20" } a\_hash\[:age\] # => "20" To access data from the hash above, bracket notation ...

Aug 22, 2022 · 3 min read · muhambiphares.hashnode.dev  
Read the article

-   [#ruby](https://hashnode.com/tag/ruby)
-   [#hashes](https://hashnode.com/tag/hashes)

## Written by

[phares muhambi](https://hashnode.com/@muhambi716)

@muhambi716

  
[View profile](https://hashnode.com/@muhambi716)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
