Iam tring to learn the javascript core concepts and i was going through the concept of let and const being block-scoped and var being function-scoped and illegal shadowing. But when i entered the above code in visual studio code. you can see that i actually made two illegal shadowing, first one is I declared b with let keyword in the global scope and tried to declare b with var keyword in second inner block. This illegal shadowing is detected by visual studio code editor. But I also made another illegal shadowing which is c declared with let keyword in first inner block and again c declared in second inner block with var keyword. This error is not detected by visual studio code. But this error will be detected if run on chrome. Can anyone tell why visual studio code is not able to detect the second illegal shadowing.
