Overview
This is an example AppJet library that includes JSDoc-style
documentation.
In particular, it defines the functions someFunction() and reverseString(). For the full capabilities of JSdoc, see jsdoctoolkit.org .
In particular, it defines the functions someFunction() and reverseString(). For the full capabilities of JSdoc, see jsdoctoolkit.org .
examples
var x = "Aaron"; print(reverseString(x)); // prints "noraA"
Functions
Here is a basic function with no arguments and no return value.
Note that you can put HTML markup inside JSDoc-comments.
This function reverses a string.
parameters
| string | str | The string to be reversed |
returns
| string | The reversed string |
This function calculates the arithmetic mean of three numbers.
parameters
| number | x | First of the three numbers |
| number | y | Second of the three numbers |
| number | z | Third of the three numbers |
returns
| number | The computed value of (x+y+z)/3 |
examples
var result = mean3(1,2,3); print(result); // prints "2"
// here is another example: var result = mean3(4,5,6); print(result); // prints 5
Objects