One minute
console.log Clarity Trick
Sometimes, a lot of information is being printed into the console and it’s hard to see what’s what.
Instead of console.log(foo)
, try console.log({ foo })
.
> const foo = 'foo';
> console.log(foo)
"foo"
> console.log({ foo })
{foo: "foo"}
Read other posts
comments powered by Disqus