-
-
Notifications
You must be signed in to change notification settings - Fork 455
Nawal week 8 #1000
base: manchester3
Are you sure you want to change the base?
Nawal week 8 #1000
Conversation
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.
Great work, Nawal!
2. Describe in a sentence what this API endpoint returns when all of the fields are completed? | ||
|
||
<!-- Write your answer here --> | ||
Lists details of a pull request by providing its number |
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.
Yes, and specifically pull request comments.
// }) | ||
|
||
const addGreeting = (greetingObj) => { |
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.
I would call the parameter greeting
as it is technically a string, not an object.
const containerList = ulElement.appendChild(liElement) | ||
const imgList = liElement.appendChild(imgElement) | ||
|
||
const getRandomDogImg= (dogImg) => { |
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.
This might be more appropriately called displayImage
. Try to keep the indentation consistent.
@@ -0,0 +1,41 @@ | |||
function getImage(){ | |||
fetch ('https://dog.ceo/api/breeds/image/random') |
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.
Cool, this works well!
How would you implement error handling? Remember you can do any DOM manipulation you like, so you can show any messaging to the user...
@@ -0,0 +1,30 @@ | |||
function getHumour(){ |
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.
As before - works well! Think about error handling.
Your Details
Your Name: Nawal
Your City: North West
Your Slack Name: NawalC
Homework Details
Module:JS3
Week:2