Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
add id
  • Loading branch information
PawanSirsat committed Sep 25, 2023
1 parent bfde72c commit bf1acb8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ async function fetchAndDisplayUserList() {
avatarImage.src = user.avatar
avatarImage.className = 'user-avatar1'

const userid = document.createElement('p')
userid.textContent = `ID : ${user.id}`

const username = document.createElement('p')
username.textContent = `Name : ${user.first_name}`

Expand Down

0 comments on commit bf1acb8

Please sign in to comment.