What does ".then" mean in JavaScript? Consider this snippet of code: return ajaxService.request('post', 'api/{ticketId}/alt-forms/getSatelliteMapUrl', geoCodedata, { failureMessage: 'Failed to Geocode SatMap/PDF'}) .then(function (satelliteMapData, data) { Is the ".then" comment attached immediately to the previous "return" statement? If so, how? If not, then would the functionality of this JavaScript bit not be impacted if I put an "alert" statement immediately before the ".then" statement and immediately after the "return" statement?
The statements are all "chained" together, this allows you to do Action1.then(action2).then(action3) and so on. See JQuery chaining (https://www.w3schools.com/jquery/jquery_chaining.asp) - also is really slick for doing animations.
its a then, you should do the math and realize how PEMDAS works or something similar, so you can monitor your codes better, and not lose time.