A. Inside the function in which it is declared
B. to all the functions
C. All the scripts inside save JS File
D. None of these
Local Variables are destroyed after execution of function.
function message() { var name = "Pritesh"; alert(name); }
Variable declared above is example of ___________ Variable.
Variable declared outside JavaScript Function is called as _______________ .
Local Variables are Destroyed as soon as ______________.
<script type="text/javascript"> var name; name = "Pritesh"; </script> <script type="text/javascript"> document.write(name); </script>
What will be the output of the following ?
What are variables used for in JavaScript Programs?