Standard built-ins
Error.stack
Common diagnostic extension with engine-dependent representation; do not parse its format as a portable program contract.
Formal Syntax & Structure
javascript syntaxjavascript
error.stackReturn Value
Implementation-dependent
Diagnostic stack representation when available.
Working Example
Example Snippetjavascript
console.log(typeof new Error("x").stack);