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