-
-
Notifications
You must be signed in to change notification settings - Fork 458
Altom week-8 #1006
base: manchester3
Are you sure you want to change the base?
Altom week-8 #1006
Conversation
createH2.textContent = greet; | ||
getHtmlDoc.appendChild(createH2); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You got wrong here, the random greeting should be displayed in the box not to display it in a h2 and you don't have .catch if there is an error. It needs to be fixed.
content.appendChild(createUl); | ||
} | ||
|
||
getBtn.addEventListener("click", getData); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job Altom, the only thing which is missing error handling when the data is fetched. Try to reorder you these function it looks messy.
let createImg = document.createElement("img"); | ||
createImg.src = image; | ||
content.appendChild(createImg); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good Work, The missing part is the error handling code on the fetched data
Your Details
Your Name:
Your City:
Your Slack Name:
Homework Details
Module:
Week: