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 trialMichael Nai
271 PointsNeed help, completing the task, could you please tell what went wrong?
Declare a string bookTitle:
class Program { static void Main() { System.Console.Write("Hello");
string = bookTitle;
}
}
2 Answers
Steven Parker
231,269 PointsFor task 1, you're just declaring the variable. You won't need an equal-sign (=) for that part.
(And when you do need it for assignment, the variable name will go on the left side of it.)
Also, don't put in anything not asked for (like that class declaration, function definition, or code for printing "Hello").
Michael Nai
271 PointsThank you Steven, that helped :)