Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialappliaison
2,832 Pointsaddress = Address.new address.kind = "Home" address.street_1 = "Main Street" address.street_2 = "123"
What is wrong with this
address = Address.new address.kind = "Home" address.street_1 = "Main Street" address.street_2 = "123" address.city = "New York" address.state = "NY" address.postal_code = "10101"
1 Answer
Angela Visnesky
20,927 PointsHi App,
The challenge is asking you to create a new instance of the Address class and assign it to the variable address, making sure to pass in the arguments. Your code should look something like this:
address = Address.new("Home", "Main Street", "123", "New York", "NY", "10101")
Hope this helps!