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 trialFemi Sutton
288 Pointsthe task ask Create the variable name and set it equal to your own name. and I put name = "Femi" so what did I do wrong
please help me understand the name variable
name = Femi
puts "hello"
Puts name
2 Answers
andren
28,558 PointsYour name is a string, so it has to be wrapped in quote marks like this: "Ferni"
.
You also spell puts
with a capital P on your third line which is not valid.
If you wrap quotes around your name, and remove the puts
lines since the task did not ask for them, like this:
name = "Femi"
Then your code will work.
Femi Sutton
288 Pointsi had just figured it out, i appreciate you taking your time to help anyway