iMagic
iMagic
TTCTheo's Typesafe Cult
Created by iMagic on 11/26/2022 in #questions
Is this intended JS behavior?
Yup. If we're following regular JS scoping rules it makes sense to me why i would get a reference error there. That second example was just delving deeper into this
(which i wasnt expecting to be able to do anyway, but if i did it would at least make sense)
I guess what my post boils down to ultimately is why i wouldnt be able to define variables under the same name across different cases
9 replies