JavaScript tips — Getting the stack trace of an exception

preview_player
Показать описание
The stack property on JavaScript error objects provides the call stack of the error. This can be especially useful for error reporting

This is a non-standard property, so keep in mind that the property may not exist and the format of the stack trace will differ across browser and JavaScript environments. Never rely on this property for critical paths in your code

#javascript
Рекомендации по теме
Комментарии
Автор

Can you please explain what is Error.captureStackTrace();

akashddeepchitransh