I understand that functions in JavaScript can take any number of arguments.
- Sure do! Flexibility is cool!
I can describe the similarity between blocks in Ruby and anonymous functions in JavaScript.
- They are essentially the same. A bit of code which is to be run by the method / function but doesnt need to be accessed outside of it.