Skip to content

finished#12

Open
tanveeriali wants to merge 1 commit intofrontend-application-development-uw20:masterfrom
tanveeriali:homework-week1
Open

finished#12
tanveeriali wants to merge 1 commit intofrontend-application-development-uw20:masterfrom
tanveeriali:homework-week1

Conversation

@tanveeriali
Copy link

Week 1 HW Submission

Please fill out the information below in order to complete your assignment. Feel free to update this comment later if necessary.

  • Comfort rating on this assignment (1-5): 1|2|3|4|5
  • Completion rating on this assignment: complete|incomplete

class DivElement extends HTMLElement {
constructor(content) {
super('div', content);
this.content = content;

Choose a reason for hiding this comment

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

This works, but is not required. The super('div', content) sets the content.

const lastName = names[1];
const email = person.email;
const phone = person.phone;
people.forEach((person) => {

Choose a reason for hiding this comment

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

Suggested change
people.forEach((person) => {
people.forEach(({ email, phone, name }) => {

You can destructure your arguments. Saves a few lines, but isn't always the most readable 🤷‍♀️

this.seconds -= 1;
}, 1000);
}
}

Choose a reason for hiding this comment

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

Great work here.

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