Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

console is not defined

Tags:

jquery

Why does this:

jQuery(document).ready(function($) {
    console.log("test");
});

produce this error message: console is not defined

In Firefox 3.5.6 on Windows XP?

like image 973
Phillip Senn Avatar asked Sep 11 '26 04:09

Phillip Senn


2 Answers

The Firebug extension defines the console object in Firefox. It needs to be installed or there will be a JS error.

like image 67
Annie Avatar answered Sep 13 '26 07:09

Annie


Which Firebug version are you using? I had the same problem with version 1.4.5 in Firefox 3.5.6 on MacOS. What I did is, I installed the latest beta version from http://getfirebug.com/releases/firebug/1.5X/

After that it worked perfectly again.

like image 44
Flo Avatar answered Sep 13 '26 05:09

Flo