JavaScript: Global Variable
We use global variable to share something across functions in JavaScript.
Here is an example script showing
- How the global variable behaves in JavaScript,
- How we can create global variable, and
- How we can use it?
<script>
// A global variable. It can be defined like this… (Continue)