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

Chapter 8. Write Better JavaScript Scrip... > What Are Those Parentheses For?

What Are Those Parentheses For?

Now let's talk about those parentheses at the end of the function name—they've got to be there for some reason, right?

These parentheses are actually used to hold a parameter. Parameters act just like variables and can hold just about any data you want—text strings, numbers, Boolean values, and so on.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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