Error: columnNumber - JavaScript | MDN

Value

A positive integer.

Property attributes of Error: columnNumber
Writableyes
Enumerableno
Configurableyes

Examples

Using columnNumber

js

try {
  throw new Error("Could not parse input");
} catch (err) {
  console.log(err.columnNumber); // 9
}

Specifications

Not part of any standard.

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on by MDN contributors.