• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 8. Write Better JavaScript Scrip... > Creating Effective Functions!

Creating Effective Functions!

Now that you've had a chance to write your first function and have practiced how to use events to trigger functions, you're ready to delve a little deeper.

The best way to think of functions is as a group of statements that perform a particular job. This can be a simple job requiring no more than one statement (as we saw previously) or a more complex function requiring many statements. Either way, functions perform a particular job.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint