0x4E4F@lemmy.dbzer0.com to Programmer Humor · 4 months agoWirks every timelemmy.dbzer0.comimagemessage-square15fedilinkarrow-up1106arrow-down112
arrow-up194arrow-down1imageWirks every timelemmy.dbzer0.com0x4E4F@lemmy.dbzer0.com to Programmer Humor · 4 months agomessage-square15fedilink
minus-squareExcigma@lemmy.worldlinkfedilinkarrow-up1·edit-24 months agoI’m on my phone rn so can’t format well, but one such example is: const thing = require(“module”) (async () => { something })() without a ; at the end of the first line, JavaScript will try to do require(“module”)() instead
I’m on my phone rn so can’t format well, but one such example is:
const thing = require(“module”)
(async () => { something })()
without a ; at the end of the first line, JavaScript will try to do require(“module”)() instead