Skip to content
This repository has been archived by the owner on Oct 26, 2020. It is now read-only.

Altom week-8 #1006

Open
wants to merge 1 commit into
base: manchester3
Choose a base branch
from

Conversation

AltomHussain
Copy link

Your Details

Your Name:
Your City:
Your Slack Name:

Homework Details

Module:
Week:

createH2.textContent = greet;
getHtmlDoc.appendChild(createH2);
}
Copy link

@Abdoulrazack95 Abdoulrazack95 Jul 2, 2020

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);
Copy link

@Abdoulrazack95 Abdoulrazack95 Jul 2, 2020

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);
}

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

@Abdoulrazack95 Abdoulrazack95 added the reviewed A mentor has reviewed this PR label Jul 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
reviewed A mentor has reviewed this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants