JavaScript Functions

Javascript: Object-oriented programing language that adds interactivity to websites.  Allows less server interaction as you can validate user input before sending it off to the server — this leads to lower server load & traffic.

Higher-order functions:  A function that takes other function(s) as arguments, or returns a function as its result.

Callback function:  A function that is passed into another function as an argument.  It’s being “called back” by the higher-order function.

Closure:  global variables can be made local or private using closures.  A closure gives you access to an outer function’s scope from an inner function.


JavaScript Functions

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s