Skip to content

Conversation

@walzer85
Copy link
Owner

Checkpoint Rubric

This is the rubric that your instructor will use to grade your checkpoints. Please do not edit.

Checkpoint 1

  • All tests passed: 40 points
  • Proper use of documentation (commenting on code): 15 points
  • Properly indented code: 15 points
  • Demonstrated effective use of JavaScript: 30 points

Checkpoint 2

  • The application works as it should: 40 points
  • Proper use of documentation (commenting on code): 15 points
  • Properly indented code: 15 points
  • Demonstrated effective use of JavaScript and the DOM API: 30 points

Checkpoint 3

  • Use of React: 25 points
  • Accesses an API: 25 points
  • Proper use of documentation (commenting on code): 25 points
  • The application functions as it should: 25 points

Copy link

@reneemeyer reneemeyer left a comment

Choose a reason for hiding this comment

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

Eric, I see where you were trying to go with the Class of Customer, however you made this way more complicated than it needed to be. I see that you are planning out your code, however we need to fine tune your logic. These problems - take them extremely literally. Don't add complexity.

}

//make new instances of Customer. Use the keys and values listed in the assignment
let marilyn = new Customer(1, 'Marilyn Monroe', 'New York City', 'NY', 'Yellow Chair', '19.99');

Choose a reason for hiding this comment

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

All of these should be const.

// ];

//Create a new class called customer. it is made out of an id number, a name, city, state, product, and price. Include a statement that prints out the sentence required for the assignment
class Customer {

Choose a reason for hiding this comment

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

This is unnecessary.

//make new instances of Customer. Use the keys and values listed in the assignment
let marilyn = new Customer(1, 'Marilyn Monroe', 'New York City', 'NY', 'Yellow Chair', '19.99');
let abe = new Customer(2, 'Abraham Lincoln', 'Boston', 'MA', 'Tickets', 27.00);
let john = new Customer(3, 'John F. Kennedy', 'Dallas', 'TX', 'Mustang Convertible', 2499.99);

Choose a reason for hiding this comment

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

This method would require someone to physically type out all of the items in the array, what if the array changes ? What if the array had 5,000 users? You need to use a higher order loop like forEach or map that would loop through this array and print out a string in the given format for every user.

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.

3 participants