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

Chase Smith
Chase Smith
277 Points

Initialize bookTitle with the title of your favorite book.

how do i do this

CodeChallenge.cs
string bookTitle;
bookTitle = ("The Hardy Boys");

1 Answer

Dale Severude
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Dale Severude
Full Stack JavaScript Techdegree Graduate 71,350 Points

Two things here.

1) Drop the parenthesis from your value. This will cause a compiler error.

2) The challenge does not seem to accept a two line answer to this challenge. You will need to rewrite your answer as a single line declaration to get the challenge to pass your answer.