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

C# C# Basics (Retired) Console I/O Variables

Declared 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.

CodeChallenge.cs
string bookTitle;

1 Answer

Steven Parker
Steven Parker
229,644 Points

It 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.

Thanks 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.☺