© Russ Ferguson 2019
Russ FergusonBeginning JavaScripthttps://doi.org/10.1007/978-1-4842-4395-4_5

5. JavaScript Functions and Context

Russ Ferguson1 
(1)
Ocean, NJ, USA
 

The previous chapter introduced the concept of objects and used the array object to illustrate how objects can be used to help you develop your application.

Host objects and environment objects are available to you. Environmental variables may change depending on the environment, so the objects available to you in the browser may not always match what you can use on the server.

This chapter will introduce functions. Functions are used as a way to perform options on your data. Functions are also useful because they can be reused as many times as you need.

There are different ways you can ...

Get Beginning JavaScript: The Ultimate Guide to Modern JavaScript Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.