Skip to content

complete assignment#37

Open
wypythonbasic wants to merge 1 commit intomodern-web-application-uw19:masterfrom
wypythonbasic:master
Open

complete assignment#37
wypythonbasic wants to merge 1 commit intomodern-web-application-uw19:masterfrom
wypythonbasic:master

Conversation

@wypythonbasic
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
  • Completion rating on this assignment (complete/incomplete):complete
  • Github handles of code I've reviewed:


// Export class here
module.exports = {};
render() {
Copy link

Choose a reason for hiding this comment

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

Rather than redo the render function you can leverage the parent class and its functions.

// Define class here
class DivElement extends HTMLElement {
constructor(content) {
super();
Copy link

Choose a reason for hiding this comment

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

You can pass the parameters into super to use the parents constructor to set them. ie:
super('div', content);

@MadEste
Copy link

MadEste commented May 10, 2019

Good work, be sure you understand how super() works so you can utilize it and avoid duplicate code.

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