C# C# Basics 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
Dale Severude
Full Stack JavaScript Techdegree Graduate 70,080 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.