Answer & Solution
Answer: Option B
Solution:
In HTML, a global variable refers to a variable declared outside of any function or block, making it accessible throughout the entire HTML document.
<script> element in HTML?
<script> element from another <script> element in HTML?
<br> <br> <script> <br>var globalVar = 'Hello'; <br>console.log(globalVar); <br> </script>
<script> element in HTML?