Hacker Newsnew | past | comments | ask | show | jobs | submit | joaolvcm's commentslogin

By the way, this has nothing do with f strings but for debugging JavaScript you can do something like

console.log({var1,var2,var3});

And the logged object will get created with the variables content and the variable nem as key, so it will get logged neatly like

{var1: "this is var1", var2: 2, var3: "3"}


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: