But whatever they are called, they are subprograms. In this course we will follow the Javascript convention of calling them functions . Built-in functions were created by the programmers who created the Javascript language. After all, as the programmer, you get to decide what it is going to do, and how it is going to do it. Defining your own functions allows you to add new commands to the programming language.
Some code goes here.
This executes the code that is in the function. To call a function just use its name in your code. You can try getdata.htm to see this at work. When you have tried it out, click the Back arrow to return here. An error message results in any language under these conditions.