Reading 3: Functions

by Mike Gleicher on September 20, 2015

in Assignments

Initial posting due on Canvas on Monday September 28.

For this week, I’d like you to read more about functions in JavaScript.

You’ve seen functions in other languages. But you are probably getting the sense that in JavaScript, we can do more with them. The ability to nest scopes and make closures means we can use functions as a way to create lots of useful programming idioms – like object-oriented programs and modules.

For the discussion… Consider things that you can do with JavaScript functions that you can’t do with functions in a language like C or Java. What kinds of things can you do? What might you use this for? Why might this be a good (or bad) way to program?

The Readings:

 

Print Friendly, PDF & Email

Previous post:

Next post: