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

Chapter 12. Functions > Running the Function

Running the Function

Now that you have your function, let's make it work for you. To run this function (also called invoking or calling the function), you start with your function name, followed by a set of parentheses to hold your parameters, and you finish with a semicolon to end the line, as shown here:

function myFunction (){
    trace ("My first function");
}
myFunction();
//output: My first function


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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