line property

Returns the line number portion of the location in the source file.

Note These APIs can only be used with F12 developer tools and the Diagnostics Script Engine, and can't be called from JavaScript.

This property is read-only.

Syntax

JavaScript
nLineNumber = object.line

Property values

Type: number

See also

DiagnosticsSourceLocation