Skip to content
This repository was archived by the owner on May 14, 2024. It is now read-only.

Conversation

@ghost
Copy link

@ghost ghost commented Aug 25, 2018

No description provided.

Copy link
Contributor

@remarcmij remarcmij left a comment

Choose a reason for hiding this comment

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

Hi Donald, as I did your review in class and you already applied my feedback I'll just approve your homework now without further comment (except for tip, see below). Again, good job!

fetchJSON(url, (err, data) => {
const root = document.getElementById('root');
const root = document.getElementById("root");
const header = createAndAppend("header", root, { "class": "header" });
Copy link
Contributor

Choose a reason for hiding this comment

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

You do not need to enclose the property names such as class in quotes. If a property name of an object conforms to the rules of a JavaScript variables name (e.g. no spaces or special characters in the name) you can leave out the quotes. Of course, for the values you do need quotes if they are strings.

Copy link
Author

Choose a reason for hiding this comment

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

Hi Jim, thank you so much for your feedback, I have considered your advise in the homework for week 2.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants