GennadySht 2 rokov pred
rodič
commit
0a497234c5
1 zmenil súbory, kde vykonal 6 pridanie a 1 odobranie
  1. 6 1
      js/17_async/hw_17_01_luke.html

+ 6 - 1
js/17_async/hw_17_01_luke.html

@@ -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>