[Solved] Rewrite code from Arrow Function to non arrow function


require('isomorphic-fetch');

let items = [];

fetch("https://www.googleapis.com/books/v1/volumes?q=isbn:0747532699")
  .then(function(res) { return res.json(); })
  .then(function (result) {
    items = result.items;
    console.log(items);
  }),
  function (error) {
    console.log(error);
  }

1

solved Rewrite code from Arrow Function to non arrow function