Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Homework Week 2 Midy #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: Midyan-Hamdoun
Choose a base branch
from
Open

Homework Week 2 Midy #8

wants to merge 4 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Feb 14, 2020

No description provided.

function renderRepoDetails(repo, ul) {
createAndAppend('li', ul, { text: repo.name });
function renderRepoDetails(repo, parent) {
console.log(repo);

Choose a reason for hiding this comment

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

Please remove any console.log statements used for debugging before committing

// This here finds the index of the repo we are looking for
// using the value selected in `select`
renderRepoDetails(
repos[repos.findIndex(el => el.name === select.options[select.selectedIndex].value)],

Choose a reason for hiding this comment

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

It is better to use this instead of select here in order to make this function reusable if needed

@ghost ghost changed the title Homework Week 1 Midy Homework Week 2 Midy Feb 17, 2020
@ghost
Copy link
Author

ghost commented Feb 22, 2020

Homework week 3 is here too for some reason!

}
return res.status === 200 ? res.json() : null;
});
static async fetchJSON(url) {

Choose a reason for hiding this comment

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

nice!

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

Successfully merging this pull request may close these issues.

1 participant