Created
July 16, 2019 06:11
-
-
Save vladanyes/87595620c21e28a4f5bb7add3a781991 to your computer and use it in GitHub Desktop.
JavaScript print call stack
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log(new Error().stack); | |
// example | |
function firstFunction() { | |
secondFunction(); | |
} | |
function secondFunction() { | |
thridFunction(); | |
} | |
function thridFunction() { | |
console.log(new Error().stack); | |
} | |
firstFunction(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment