cm0002@sh.itjust.works to Programmer Humor@programming.dev · 11 days agoMadness or brilliancefeddit.orgimagemessage-square44fedilinkarrow-up1516arrow-down16
arrow-up1510arrow-down1imageMadness or brilliancefeddit.orgcm0002@sh.itjust.works to Programmer Humor@programming.dev · 11 days agomessage-square44fedilink
minus-squarekubica@fedia.iolinkfedilinkarrow-up21·11 days agoThis is what peak performance looks like: console.log("before dothething"); let r = dothething(); console.log("after dothething"); console.log(r);
minus-squarehotdogcharmer@lemmy.ziplinkfedilinkarrow-up5arrow-down1·11 days agoHey how’d you get your hands on my code
minus-squaredarvit@lemmy.darvit.nllinkfedilinkarrow-up2·9 days agoBe careful, the actual logging can happen at a later time, and because the log function may take a reference to the value, if you modify r it may show the modified version of r in the logging instead of the original r.
This is what peak performance looks like:
console.log("before dothething"); let r = dothething(); console.log("after dothething"); console.log(r);
Hey how’d you get your hands on my code
Be careful, the actual logging can happen at a later time, and because the log function may take a reference to the value, if you modify r it may show the modified version of r in the logging instead of the original r.