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.

This is tou...oh right, #solidwork.
This is tough stuff, and you're almost getting it, but it's really a matter of turning English into javascript. I know we did it in class, but your .map() was perfect! Just fix the rest!


const numArray = [2, 4, 6, 8];

function forEach(arr) {
Copy link

@stu-k stu-k Nov 10, 2017

Choose a reason for hiding this comment

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

From MDN:

The forEach() method executes a provided function once for each array element.

Yours:

Takes an array and console.logs every item in the array + 2.


// map consists of an array, a function, and a return array.

function map(arr, callback) {
Copy link

Choose a reason for hiding this comment

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

Yes! Perfect!

}
}

function filter(arr, callback) {
Copy link

@stu-k stu-k Nov 10, 2017

Choose a reason for hiding this comment

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

From MDN:

The filter() method creates a new array with all elements that pass the test implemented by the provided function.

Yours:

Creates a new array with all elements manipulated by the callback, regardless of whether or not they pass any tests.

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