Skip to content

Final commit#4

Open
koggenfuss wants to merge 6 commits intocode-differently:mainfrom
koggenfuss:main
Open

Final commit#4
koggenfuss wants to merge 6 commits intocode-differently:mainfrom
koggenfuss:main

Conversation

@koggenfuss
Copy link
Copy Markdown

No description provided.

@kburd kburd self-requested a review March 1, 2021 19:58
@@ -0,0 +1,3 @@
{
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You should add .vscode folder to the .gitignore




app.get('/', async (req, res) => {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is on the right track, I will explain in class farther

if (colors[j][0] === data[i][0].type) {
cardType = colors[j][1]; }
}
document.getElementById('container').innerHTML += `
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Updating innerHTML can be computationally costly. What i recommend is to have a variable, perhaps named body, that you add the string template to each iteration and then at the end of the loop you set innerHTML equal to body

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.

2 participants