Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tjkomor/beba5cba30db353e6619 to your computer and use it in GitHub Desktop.
Save tjkomor/beba5cba30db353e6619 to your computer and use it in GitHub Desktop.

Array Prototype Methods

I understand that functions in JavaScript can take any number of arguments.

yes

I can describe the similarity between blocks in Ruby and anonymous functions in JavaScript.

yes

Where are the methods available to all arrays (e.g. forEach, map, etc.) defined?

on the collection

I can explain the difference between using a for loop and the forEach method.

not really

I can explain the difference between forEach and map.

map will return the manipulated collection, and I guess I'm not really sure what forEach will return.

Can you explain the process of taking a plain JavaScript objects, transforming them into DOM nodes, and appending them to the page.

no

How comfortable are you using the forEach() method?

6/10

How comfortable are you using the map() method?

6/10

How comfortable are you using the filter() method?

6/10

How comfortable are you using the reduce() method?

6/10

How comfortable are you using the sort() method?

5/10

How comfortable are you working with simple unit tests in Mocha in the browser?

6/10

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