@@ -56,6 +56,11 @@
});
return result;
}
- let res = improovedFetch('https://swapi.dev/api/people/1/');
+ improovedFetch('https://swapi.dev/api/people/1/').then(
+ res => res
+ )
+ .then(
+ res => document.write(JSON.stringify(res))
+ );
</script>
</body>