Welcome to the Treehouse Community
Looking to learn something new?
Takuya Hirata23,295 Points
I was wondering why 'getJSON' function worked even though that function has 'return' on line 2. Thank you!
Brendan WhitingFront End Web Development Techdegree Graduate 84,696 Points
It's going to return the promise object. The rest of the code from line 3 to 20 is inside the promise object that is being returned. Anything after line 20 wouldn't have been run because it's after the return statement.