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
Dheen A
Courses Plus Student 1,292 PointsCode 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
Jason Loughry
5,680 PointsYou are declaring the variable properly. Read the instructions again for the challenge; your hint is there. ;)
Graham Davidson
Courses Plus Student 14,966 Pointsdoes it need a ; sticking on the end
Dheen A
Courses Plus Student 1,292 PointsI tried with ';'
name = "Dheen"; status = "My status";
still no use :(
Graham Davidson
Courses Plus Student 14,966 PointsAre these PHP or Javascript
Dheen A
Courses Plus Student 1,292 PointsRuby :)
Graham Davidson
Courses Plus Student 14,966 Pointsif php you need $name = 'Dheen; $status = 'My status';
If JavaScript you need var name = "Dheen"; var status = "My Status";
Hope this helps
G
Graham Davidson
Courses Plus Student 14,966 PointsAh sorry I have not covered Ruby yet - sorry I could not help
James Barnett
39,199 PointsGraham 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.
Dheen A
Courses Plus Student 1,292 Points... and for Ruby?