javascript log a stack trace code example Example: js log stack trace console.log(new Error().stack);