background

Chapter 7

Chapter 7 demonstrates usage of functions in JavaScript. In this chapter, we learn the difference between local and global variables, how to create functions (otherwise known as methods), and how to call or execute a method.