Q. How can you declare a variable globally inside a function?
β
Correct Answer: (A)
Without var, let, or const
Explanation: Assigning a variable without var/let/const in a function makes it global (not recommended).