HiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · edit-21 month agoWhy make it complicated?lemmy.mlimagemessage-square106linkfedilinkarrow-up11arrow-down10file-textcross-posted to: programmerhumor@lemmy.ml
arrow-up11arrow-down1imageWhy make it complicated?lemmy.mlHiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · edit-21 month agomessage-square106linkfedilinkfile-textcross-posted to: programmerhumor@lemmy.ml
minus-squarePsaldorn@lemmy.worldlinkfedilinkarrow-up0·1 month agoIf there’s only two options you only need one keyword
minus-squareHotzilla@sopuli.xyzlinkfedilinkarrow-up0·edit-21 month agoTrue, but var and let are not same in js, so there is three. if(true) { var a = "dumdum" } console.log(a) Is valid and functioning javascript. With let it is not.
If there’s only two options you only need one keyword
True, but var and let are not same in js, so there is three.
if(true) {
var a = "dumdum"
}
console.log(a)
Is valid and functioning javascript. With let it is not.