SOURCE

// fetch('https://api.github.com/users/ruanyf')
//   .then(response => response.json())
//   .then(json => console.log(json))
//   .catch(err => console.log('Request Failed', err)); 


fetch('https://6cxx9pggi4.execute-api.us-east-1.amazonaws.com/prod/comments')
    .then(res => res.json())
    .then(json => console.log(json))
    .catch(err => console.log(err));
console 命令行工具 X clear

                    
>
console