HiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · edit-229 days agoWhy make it complicated?imagemessage-square122linkfedilinkarrow-up1370arrow-down138file-text
arrow-up1332arrow-down1imageWhy make it complicated?HiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · edit-229 days agomessage-square122linkfedilinkfile-text
minus-squareHotzilla@sopuli.xyzlinkfedilinkarrow-up5·edit-229 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.
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.