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

Chapter 5. Building JavaScript Expressions > Understanding Expression Structure

Understanding Expression Structure

In the previous chapter, you saw that there are many different ways to work with and use functions. One type you saw was a function that accepted one or more arguments, combined and manipulated those arguments in a particular way, and then returned a result. The example I gave was for a tip calculator that accepts the pre-tip total, calculates the appropriate tip, and then returns that value.

→ The tip calculator is in Listing 4.5; see "Returning a Value from a Function"


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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