HiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · edit-215 days agoWhy make it complicated?lemmy.mlimagemessage-square74fedilinkarrow-up1314arrow-down136file-text
arrow-up1278arrow-down1imageWhy make it complicated?lemmy.mlHiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · edit-215 days agomessage-square74fedilinkfile-text
minus-squareHotzilla@sopuli.xyzlinkfedilinkarrow-up4·edit-214 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.