Skip to Content
JavaScript: The Good Parts
book

JavaScript: The Good Parts

by Douglas Crockford
May 2008
Intermediate to advanced
172 pages
4h 54m
English
O'Reilly Media, Inc.
Content preview from JavaScript: The Good Parts

Report

If JSLint is able to complete its scan, it generates a function report. It lists the following for each function:

  • The line number on which it starts.

  • Its name. In the case of anonymous functions, JSLint will "guess" the name.

  • The parameters.

  • Closure: the variables and parameters that are declared in the function that are used by its inner functions.

  • Variables: the variables declared in the function that are used only by the function.

  • Unused: the variables that are declared in the function that are not used. This may be an indication of an error.

  • Outer: variables used by this function that are declared in another function.

  • Global: global variables that are used by this function.

  • Label: statement labels that are used by this function.

The report will also include a list of all of the member names that were used.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Modern JavaScript for the Impatient

Modern JavaScript for the Impatient

Cay S. Horstmann
Head First JavaScript Programming

Head First JavaScript Programming

Eric T. Freeman, Elisabeth Robson
Learn JavaScript

Learn JavaScript

Shaun Wassell

Publisher Resources

ISBN: 9780596517748Supplemental ContentCatalog PageErrata