Question:How would you declare a global variable in your JavaScript code? 

A All variables are local in JavaScript 

B You will have to declare the variable between the 'script' tags and outside a function to make the variable global 

C You will have to precede the variable name with the constant global 

D You will have to declare the variable in an external file 

+ Answer
+ Report
Total Preview: 975

Copyright © 2024. Powered by Intellect Software Ltd