▲ 333 ▼ Why make it complicated? (lemmy.ml) submitted 1 year ago* by HiddenLayer555@lemmy.ml to c/programmer_humor@programming.dev 123 comments fedilink hide all child comments Made with KolourPaint and screenshots from Kate (with the GitHub theme).
[–] Psaldorn@lemmy.world 10 points 1 year ago (2 children) If there's only two options you only need one keyword permalink fedilink source parent hideshow 2 child comments replies: [–] Hotzilla@sopuli.xyz 5 points 1 year ago* (last edited 1 year ago) 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. permalink fedilink source parent [–] Lemminary@lemmy.world 1 point 1 year ago Ah, but this is JS, so there are three options! And they all function entirely differently. And your assumptions don't apply, either. :D permalink fedilink source parent
[–] Hotzilla@sopuli.xyz 5 points 1 year ago* (last edited 1 year ago) 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. permalink fedilink source parent
[–] Lemminary@lemmy.world 1 point 1 year ago Ah, but this is JS, so there are three options! And they all function entirely differently. And your assumptions don't apply, either. :D permalink fedilink source parent