I have a web application that has several script tags.
Suppose I have a variable called customPage within the tag:
<script type="text/javascript">
var customPage = callSomeFunction();
<script>
Elsewhere in the page...
<script type="text/javascript">
var customPage = callSomeOtherFunction();
<script>
What is the scope of these JavaScript variables, since they are all defined using the same name? Will they overwrite each other? Or do they all have value within their own scope?