This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
I have jsp file with some java script. Here I am reusing some other .js file say util.js . In util.js I have declared a variable as shown below.
var name = "";
In my jsp file I wrote my java script, Here also I declared same variable(var name = "" . But it is working fine without showing any java script error.
Why like this..Actually what is my doubt means..
In case of jsps, if we include some other jsp in our jsp, redeclaration of same variable results us an error right..But in java script it is not working like this..So what is the difference.Can anybody clear out my doubt?