SD
What happen if we just assign value of any identifier in any function without declare it for sure it not gives error My Doubt : I think I will get consider as in Global Scope even it is in function but why when I accessing it in vscode it not runs function shiv (){ MyId = 45; var MyLoc = 67; … } Console.log(MyLoc) //Error ✅ Console.log(MyId) // Reference (Error) ❌❓❓