HiddenLayer555@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 7 months agoWhy make it complicated?lemmy.mlimagemessage-square52linkfedilinkarrow-up11arrow-down10file-text
arrow-up11arrow-down1imageWhy make it complicated?lemmy.mlHiddenLayer555@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 7 months agomessage-square52linkfedilinkfile-text
minus-squareThirdConsul@lemmy.mlBannedlinkfedilinkarrow-up0·7 months agolet ret = someCondition ? expensiveOperation() : otherOperation() ?
let ret = someCondition ? expensiveOperation() : otherOperation()?
Yeah. That works.