简体   繁体   中英

Mozilla Firebug console.log() displays the answer as undefined

I am using Firebug for the first time and when I type

var a = 10;
console.log("value of a: " + a);

the response I get on the console is "undefined".

I suppose the syntax was correct, and I tried using it with alert and document . It worked fine, but Firebug isn't showing any output. How can I fix this?

控制台截图

Note: I am talking about Firebug, the extension for Mozilla Firefox, not Firefox's built-in developer tools.

Separate expressions. Based on the screenshot, firefox displays the result of the first expression

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM