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 trialChristina Keavaney
424 PointsNSNumber *foxtrot; foxtrot = [[NSNumber alloc] initWithInt:24]; NSLog(@"foxtrot %@", foxtrot); return 0;
this is my code for the question.. whats wrong
NSNumber *foxtrot;
foxtrot = [[NSNumber alloc] initWithInt:24];
NSLog(@"foxtrot %@", foxtrot);
return 0;
1 Answer
Alvin Abia
Courses Plus Student 23,034 PointsHey Christina,
I remember that this challenge is a little weird and the code challenge might not be accepting your answer even though it is technically right. Try instantiating foxtrot with a literal like this before logging it. Hope this helps!
NSNumber *foxtrot = @24;
NSLog(@"foxtrot %@", foxtrot);