I have a pretty general question regarding JavaScript and local variables. My question is what is the difference between the following and if there is:
function bla { var a = 2;
I suppose I will not get two local variables named a. In other languages, this is even a mistake. So what do you need to use for this?
javascript var
Sentropie
source share