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
mohammed zahid
122 Pointscode challenge 1.1 create a string i have create a string
hi i have created the string and each time i press enter it say syntax error. this is my string
NSString *treeHouse = @ "tree house";
its not accepting it in the challenge screen
mohammed zahid
122 Pointsive tried these combos
NSString *treeHouse = @ "tree house"; NSString *treeHouse =@"tree house"; NSString *treeHouse = @"tree house";
i keep getting this message Bummer! Make sure you're creating the right kind of string and check your syntax!
3 Answers
Rashii Henry
16,433 Pointsits says create a string named treehouse with a value of "Treehouse"
try this :
NSString *treeHouse = @"Treehouse";
Matthew Mascioni
20,444 PointsHi Mohammed,
You're experiencing problems because you're using camel-casing where it isn't required. Remember, when creating strings, case does matter. treeHouse won't be the same as Treehouse, and so on.
The correct code is:
NSString *treehouse = @"Treehouse";
Hope this helps!
mohammed zahid
122 Pointsthanks guys you are a star
Rashii Henry
16,433 Pointsno problem man, just a week or two ago i was in your spot.
Rashii Henry
16,433 PointsRashii Henry
16,433 Pointsi believe it's because you have a space between the"@" and "treehouse".