Dapatkan Hasil Janji dari JSON () JavaScript

// Full request
fetch(myRequest)
  .then(response => response.json())
  .then(data => {
      console.log(data);
});
  
// Function that returns response
myFunction().then(data => {
  	console.log(data);
});
RedBredren