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

Code Challenge: Create a Variable: Part 2

When I typed: status = "This is my status"

it throws an error, but guess it is a correct answer. I guess it is a bug in your system. Please clarify.

Thanks.

3 Answers

You are declaring the variable properly. Read the instructions again for the challenge; your hint is there. ;)

does it need a ; sticking on the end

I tried with ';'

name = "Dheen"; status = "My status";

still no use :(

Are these PHP or Javascript

Ruby :)

if php you need $name = 'Dheen; $status = 'My status';

If JavaScript you need var name = "Dheen"; var status = "My Status";

Hope this helps

G

Ah sorry I have not covered Ruby yet - sorry I could not help

Graham Davidson - Times like this are why I really wished there was a visual indictator what category a thread was in when looking through the all categories list.

... and for Ruby?