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

Sulaiman week 8 #992

Open
wants to merge 56 commits into
base: master
Choose a base branch
from

Conversation

SULAIMAN-100
Copy link

Your Details

Your Name:
Your City:
Your Slack Name:

Homework Details

Module:
Week:

.then(function(response) {
return response.text();
})
.then(function(greeting) {
// Write the code to display the greeting text here
let element = document.getElementById('greeting-text')
element.innerText = greeting
});

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good Work here.

.then(function(dogImage){
imgTag.src = dogImage.message
})
});
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 work, you are missing the error handling after the fetched data and you could have separated your code and make it more understandable. clean Up you code only.

})
.then((data)=>
img.src = data.img
)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect, you are missing the error handling at the fetch 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.

6 participants