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

Nawal week 8 #1000

Open
wants to merge 5 commits into
base: manchester3
Choose a base branch
from
Open

Nawal week 8 #1000

wants to merge 5 commits into from

Conversation

NawalC
Copy link

@NawalC NawalC commented Jul 1, 2020

Your Details

Your Name: Nawal
Your City: North West
Your Slack Name: NawalC

Homework Details

Module:JS3
Week:2

Copy link
Member

@msachi msachi left a 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
Copy link
Member

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) => {
Copy link
Member

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) => {
Copy link
Member

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')
Copy link
Member

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(){
Copy link
Member

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants