10

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
  • 6,138
  • 12
  • 49
  • 61
Micheal
  • 2,272
  • 10
  • 49
  • 93

1 Answers1

20

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,272
  • 10
  • 49
  • 93
  • 6
    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