8

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;
Ivar
  • 5,377
  • 12
  • 50
  • 56
Micheal
  • 2,192
  • 9
  • 46
  • 89

1 Answers1

17

Never mind. I had to add this line

var p = user.permissions;

Before:

console.log(p);

I was just typing console.log(p);

Micheal
  • 2,192
  • 9
  • 46
  • 89
  • 4
    is there a way to display the runtime value of a variable by printing the value of the variable using some console commands? – BlackPanther Aug 03 '15 at 06:52