Comment

Comment by repsilat

My dumb dead-simple trick that you've probably independently invented yourself: when I want to log variables x,y,z I write

console.log({x,y,z})

not

console.log(x,y,z)

Who needs pretty-printing, formatting libraries, string interpolation etc?

parent repsilat 5 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton