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 trialHarrison Court
4,232 PointsHow do I return the bookTitle variable?
I can't figure it out. I have been looking everywhere but no luck. Any ideas?
string bookTitle = "BFG"; System.Console.Write("Enter a book title: ");
string bookTitle = "BFG";
System.Console.Write("Enter a book title: ");
1 Answer
Jennifer Nordell
Treehouse TeacherHi there! It's only the very last step that seems to be causing you a problem The challenge wants us to read in the user's answer and reassign it to the bookTitle
variable so that it overwrites our own favorite book. Take a look at the line you're missing:
bookTitle = System.Console.ReadLine();
This will read in the input from the user at the console and assign it back into the bookTitle
variable. Hope this helps!
Harrison Court
4,232 PointsHarrison Court
4,232 PointsThank you very much! I'll keep this in mind next time!