js print traceback code example
Example: javascript get stack trace
try {
throw "Could not parse that text!";
} catch(e) {
console.log(e.stack); //log the stack trace to console
}
try {
throw "Could not parse that text!";
} catch(e) {
console.log(e.stack); //log the stack trace to console
}