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 trial

Ruby Ruby Basics Ruby Syntax Variables

Fradely Dilone
Fradely Dilone
24,037 Points

Assign the string "Ruby" to a variable named language. Then assign the string "awesome" to a variable named description.

Variable is not printing, I have use comma separate, parenthesis, everything and nothing

variables.rb
language "Ruby" 
description "Awesome" 

puts(language,description)

1 Answer

Hi Fradely!

Your code is missing the assignment operator. Ruby uses the assignment operator: = to assign values to variables. The following is an example of how it works:

fruit = "apple"
Fradely Dilone
Fradely Dilone
24,037 Points

Something so simple... I truly appreciate your help!

For one second I thought ruby didn't need it!