 getUser ( "tylermcginnis" , ( user ) => { getWeather ( user , ( weather ) => { updateUI ( { user , weather : weather . query . results } ) } , showError ) } , showError ) getUser ( "tylermcginnis" ) . then ( getWeather ) . then ( ( data ) => updateUI ( data ) ) . catch ( showError ) 