whats the difference between
console.log();
and
console.dir();
which one to use?
and i tried accessing my method in my object
var pizza = {
howmanyToppings:function(){
return this.toppings; }
};
console.log(pizza.howmanyToppings());
console.log(pizza.howmanyToppings);
with both of them different thigs happen in the console
with this one
console.log(pizza.howmanyToppings());
i get value from the return.this toppings;
and with the 2nd one i just get
this in my console
return this.toppings; }```