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
ES5
and if it seems useful/superfluous.**Step One**: Watch [Sorting Algorithms in JavaScript](https://www.youtube.com/watch?v=uRyqlhjXYQI) | |
**Step Two**: Fork this gist. | |
**Step Three**: Respond to this question in your fork: "What are some of the balances and trade offs between different sorting algoritms?" | |
**Step Four**: _Totally Optional_: take a look at some of the other forks and comment if the spirit moves you. |
Read Node.js, Require and Exports and Organize Your Code with RequireJS
module
?"Modules are small chunks of your application that serve a specific purpose"... In the context of Node, a module is a set of objects with a given purpose in the program that are stored together and accessible within a one file. These act similarly to a module or class in Ruby in that they serve to group data and functions which are callable from other files through importing and exporting.
According to this talk, client side code is responsible for: Presentation & Interaction; Data/ Server Communication; Application State and Setup
Did any of the responsibilities that she lists surprise you?
Not necessarily; coming out of Rails, getting used to putting all of those responsibilities like setup, in particular, feels a bit strange but, working with and having seen some of the projects that we will do and that will force us to manage all of these things in our client-side code it makes sense.
Do you pronounce 'babel' in the same way? No
What is an example of why/where you might use recursion? You can use it in most cases where you would otherwise nest for/ while loops. In this video, the author uses it to create a search tree from an array of objects with like attributes.