HiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · edit-210 days agoWhy make it complicated?lemmy.mlexternal-linkmessage-square122fedilinkarrow-up1354arrow-down138file-text
arrow-up1316arrow-down1external-linkWhy make it complicated?lemmy.mlHiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · edit-210 days agomessage-square122fedilinkfile-text
minus-squareHotzilla@sopuli.xyzlinkfedilinkarrow-up5·edit-29 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.