javascript call stack trace code example Example 1: javascript dump strack trace console.trace(); Example 2: console trace js console.trace( [...any, ...data ]);