I am new to JS and i have facing some issue on declaration of the Variables in three ways
as my understanding
a = "a";
and
var a = "var a";
are (global declaration) same thing
but
let a = "let a"
is declare as local variable
so as i have tested some combinations
let a ="let a"
a ="a"
workes
but
let a = "let a"
var a = "var a"
not works
could you tell me why is that ?