a14o@feddit.org to Programmer Humor@lemmy.mlEnglish · 2 个月前Madness or brilliancelemmy.mlimagemessage-square21fedilinkarrow-up1225arrow-down15
arrow-up1220arrow-down1imageMadness or brilliancelemmy.mla14o@feddit.org to Programmer Humor@lemmy.mlEnglish · 2 个月前message-square21fedilink
minus-squaredumnezero@piefed.sociallinkfedilinkEnglisharrow-up1·2 个月前console.log("functionOne", "A", varA, "B", varB, "C", varC);
minus-squaredumnezero@piefed.sociallinkfedilinkEnglisharrow-up1·2 个月前While that works, of course, I avoid doing object construction or other logic beside some string concatenation in JS logs. And those string literals serve a purpose as semantic markers, not just as separators.
console.log("functionOne", "A", varA, "B", varB, "C", varC);console.log('func', {A, B, C})While that works, of course, I avoid doing object construction or other logic beside some string concatenation in JS logs. And those string literals serve a purpose as semantic markers, not just as separators.