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 trialapbaca06
4,637 Pointswhy there's error in this?
why there's error when I paste the code from the project files on the website to my own Xcode playground?
let areaOfRoom = area(length: length, width: width)
the description of the error: Use of unresolved identifier 'area'
1 Answer
Jeff McDivitt
23,970 PointsIt is tough to diagnose the error without the rest of your code. Also please view the markdown cheatsheet to make you code more readable
apbaca06
4,637 Pointsapbaca06
4,637 Pointsthank you Jeff! later I found out that the " area" hasn't been defined. that's why the error appeared!