Albin7326@suppo.fi to Programmer Humor@lemmy.ml · 1 year agoHow dare you ask this? Was it just to get into a programming memes page?suppo.fiimagemessage-square48fedilinkarrow-up1356arrow-down111file-text
arrow-up1345arrow-down1imageHow dare you ask this? Was it just to get into a programming memes page?suppo.fiAlbin7326@suppo.fi to Programmer Humor@lemmy.ml · 1 year agomessage-square48fedilinkfile-text
minus-squareFeathercrown@lemmy.worldlinkfedilinkarrow-up16·edit-21 year agofor(var i=0; i \< numLoops; i++){ globalThis['example'+i] = doStuff(i); }
minus-squarepingveno@lemmy.mllinkfedilinkarrow-up12·edit-21 year agofor(var i = 0; i < numLoops; i++) { eval("var_" + i + " = " + i + ";"); }
minus-squareFeathercrown@lemmy.worldlinkfedilinkEnglisharrow-up10·1 year agoeval is a path to powers many would consider to be… unnatural
for(var i=0; i \< numLoops; i++){ globalThis['example'+i] = doStuff(i); }
for(var i = 0; i < numLoops; i++) { eval("var_" + i + " = " + i + ";"); }
eval
is a path to powers many would consider to be… unnaturalIs it possible to learn this power?
Not from ES6