User Tools

Site Tools


java-script:fetch-using-async-await

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
java-script:fetch-using-async-await [2023/08/03 14:25] odeftajava-script:fetch-using-async-await [2023/08/03 14:27] (current) odefta
Line 38: Line 38:
                     const div = document.getElementById('data');                     const div = document.getElementById('data');
                     div.innerHTML += `                     div.innerHTML += `
 +                        <img src="${user.avatar_url}" alt="${user.login}'s avatar" width="100"><br>
                         Login: ${user.login}<br>                         Login: ${user.login}<br>
                         ID: ${user.id}<br>                         ID: ${user.id}<br>
Line 68: Line 69:
 </body> </body>
 </html> </html>
- 
 </code> </code>
  
java-script/fetch-using-async-await.1691061910.txt.gz · Last modified: 2023/08/03 14:25 by odefta