minus-squarealqloe@lemmy.dbzer0.comtoProgrammer Humor@programming.dev•print('here1');linkfedilinkarrow-up3·edit-24 months agoI always combine that with objects with the shorthand notation. So you always know what variable has what value without having to remember in what order you printed the variables. console.trace({i, list}); // {i: 1, list: [0, 1, 2]} linkfedilink
minus-squarealqloe@lemmy.dbzer0.comtolinuxmemes@lemmy.world•mv Windows Linuxlinkfedilinkarrow-up11arrow-down40·7 months agoShut up. It is literally made by Microsoft. As a place to experiment what to include in Windows. Don’t argue with strawmen linkfedilink
I always combine that with objects with the shorthand notation. So you always know what variable has what value without having to remember in what order you printed the variables.
console.trace({i, list}); // {i: 1, list: [0, 1, 2]}