Using JSDoc annotations

In the preceding test function, you can see that the code hint became active as soon as you type a '.' next to the identifier name (Chapter8). This shows all the functions and global variables available in the external library as shown here:

Using JSDoc annotations

The preceding code hints are generic, for example, index shown as Object. For detailed code hints, you should use the JSDoc style documentations (annotations or comments at top lines of function definitions).

For example, if you used the following annotations to the getPrice function in Chapter 8, Building a Workflow Application:

/** * Returns price list data from the Stock tab/sheet * * ...

Get Learning Google Apps Script now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.