rojects</code> failed, then similarly, <code>getProjectTitles</code> and <code>alert</code> would not be called. Again, the <code>.catch</code> callback would log the error.</p>
<p>The error handler would also catch a null reference exception if <code>searchUsers</code> returned no results, and <code>getFirstId</code> attempted to access the <code>id</code> property of a non-existent array item.</p>
<p>Thanks to these error propagation semantics, it&#39;s easy to keep each function small and testable withou