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