Skip to content Skip to sidebar Skip to footer

Print Value Of JavaScript Variable In Console

I have a JavaScript variable that is storing some values. Can I echo it in Firebug or somewhere to see what values are being stored? var p = user.permissions;

Solution 1:

Never mind. I had to add this line

var p = user.permissions;

Before:

console.log(p);

I was just typing console.log(p);


Post a Comment for "Print Value Of JavaScript Variable In Console"