profile
viewpoint

Ask questionsUncaught TypeError: console.dir is not a function

Steps to reproduce:

  • simply write code that uses console.dir in JavaScript panel:
const arr = [2, 3, 5];
console.dir(arr);

Actual: Error thrown in the console:

Uncaught TypeError: console.dir is not a function at ?editor_console=true:106

Expected: Using console.dir should be valid and not throw an error.

jsfiddle/jsfiddle-issues

Answer questions oskarkrawczyk

Thanks for the heads-up. Should now work as expected even when the JSFiddle console is activated.

useful!

Related questions

No questions were found.
source:https://uonfu.com/
Github User Rank List