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 trialjeevan mp
108 PointsAm i wasting my time? kindly clarify what is wrong!
Initialize bookTitle with the title of your favorite book.
Bummer! Did you set 'bookTitle' using the equals sign and a string value?
CodeChallenge.cs
1 string bookTitle; 2 bookTitle = "aaaaaaa";
string bookTitle;
bookTitle = "aaaaaaa";
1 Answer
Steven Parker
231,236 PointsWhen they say "Initialize bookTitle with the title of your favorite book.", by "initialize" they mean declare the variable and assign it at the same time (in the same statement). Your code would actually do the same job in an actual program, but it's not the form that the challenge is looking for.
Also "aaaaaaa" is probably not really the title of your favorite book. (just kidding on this one)