Skip to content

Conversation

@cfissell50
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

@stu-k stu-k left a comment

Choose a reason for hiding this comment

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

#solidwork, just a couple notes here and there.


// Use a for loop to console.log each item in the array carsInReverse.
const carsInReverse = ['Ford', 'Chevy', 'Tesla', 'Nissan', 'Toyota'];
for (i = 0; i < carsInReverse.length; i++) {
Copy link

Choose a reason for hiding this comment

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

i is still a variable that hasn't been declared before, so you need to use let

};

// Use a for...in loop to console.log each key.
for (const keys in persons) {
Copy link

Choose a reason for hiding this comment

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

Here, you're logging all keys (in an array) for every key, so [ 'firstName', 'lastName', 'birthDate', 'gender' ] gets logged four times. For the sake of the project, change keys to key (we don't have to, but just for clarity's sake since each key is only one key, not multiple), and also, just console.log(key), since Object.keys(...) is an array not a single value.

}

// Use a while loop to console log numbers 1 to 1000
let num = 1;
Copy link

Choose a reason for hiding this comment

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

You define num as 1, which is fine, and you iterate through it in your wile loop, but then in your do loop, num is already 1000, so the do loop only runs once. Just reset num back to 1 after your while loop!

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