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
Please I Have Question On The Closures
Hi All i hope all is well i have disappointed on the closures i read on it but i still do not know why we use closures in the weather app ? and why we needed in my own app ? can i do weather app and any app without closures ? please any one can help me and explain all theses questions on the closures?
thanks for everyone
Closures are very important because they help us to write asycrinous code. What I understand is that when a function that has a closure as a parameter will only perform the code inside the curly braces when the task that you passed when declared that function had been finished.Hope you understand, I am on my phone right now so it is impossible to answer with some examples