πŸ“Š JavaScript
Q. How can you declare a variable globally inside a function?
  • (A) Without var, let, or const
  • (B) Using const
  • (C) Using let
  • (D) Using global
πŸ’¬ Discuss
βœ… Correct Answer: (A) Without var, let, or const

Explanation: Assigning a variable without var/let/const in a function makes it global (not recommended).

Explanation by: Mr. Dubey
Assigning a variable without var/let/const in a function makes it global (not recommended).

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
49
Total Visits
πŸ“½οΈ
11 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
99%
Success Rate