HiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · edit-228 days agoWhy make it complicated?lemmy.mlexternal-linkmessage-square99fedilinkarrow-up1322arrow-down131file-textcross-posted to: programmerhumor@lemmy.ml
arrow-up1291arrow-down1external-linkWhy make it complicated?lemmy.mlHiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · edit-228 days agomessage-square99fedilinkfile-textcross-posted to: programmerhumor@lemmy.ml
minus-squarePsaldorn@lemmy.worldlinkfedilinkarrow-up8·28 days agoIf there’s only two options you only need one keyword
minus-squareHotzilla@sopuli.xyzlinkfedilinkarrow-up3·edit-227 days 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.