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 trialshobanaannadurai
4,244 PointsDeclared string bookTitle; at first time code check it was run without any exception then at second its throw an error.
Declared string bookTitle; at first time code check it was run without any exception then at second check it was throw an error.
string bookTitle;
1 Answer
Steven Parker
231,275 PointsIt doesn't look like you've written anything for task 2 yet.
The instructions for task 2 are: "Initialize bookTitle
with the title of your favorite book." You'll need to add code to perform that task before it will pass the second validation test.
shobanaannadurai
4,244 Pointsshobanaannadurai
4,244 PointsThanks for your info, I got confused that i thought that is for first task so i tried that same code check even for second test also.☺