cm0002@sh.itjust.works to Programmer Humor@programming.dev · 6 months agoMadness or brilliancefeddit.orgexternal-linkmessage-square44linkfedilinkarrow-up1501
arrow-up1501external-linkMadness or brilliancefeddit.orgcm0002@sh.itjust.works to Programmer Humor@programming.dev · 6 months agomessage-square44linkfedilink
minus-squarekubica@fedia.iolinkfedilinkarrow-up18·6 months 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-up5·6 months agoHey how’d you get your hands on my code
minus-squaredarvit@lemmy.darvit.nllinkfedilinkarrow-up2·5 months 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.