Hash creation with symbols and strings
📖 Scenario: You are creating a simple contact list where each contact has a name and a phone number. You will use a Ruby hash to store this information.
🎯 Goal: Build a Ruby hash that uses both symbols and strings as keys to store contact names and their phone numbers.
📋 What You'll Learn
Create a hash with symbol keys and string keys
Use exact keys and values as specified
Access and print the hash content
💡 Why This Matters
🌍 Real World
Storing contact information in hashes is common in many Ruby applications like address books or user profiles.
💼 Career
Understanding how to use symbols and strings as hash keys is important for Ruby developers working with data structures and APIs.
Progress0 / 4 steps