vascript">atomic(&#39;https://jsonplaceholder.typicode.com/posts&#39;)
    .then(function (response) {
        console.log(&#39;all posts&#39;, response.data); // xhr.responseText
        return atomic(&#39;https://jsonplaceholder.typicode.com/posts/&#39; + response.data[0].id);
    })
    .then(function (post) {
        console.log(&#39;first post&#39;, post.data);
    })
    .catch(function (error) {
        console.log(&#39;error code&#39;, error.status); // xhr.status
        console.log(&#39;error desc