Q. What is the main thread in JavaScript?

  • (A) The single thread where JavaScript code executes
  • (B) A thread that handles HTTP requests
  • (C) A parallel execution thread
  • (D) The UI thread
πŸ’¬ Discuss
βœ… Correct Answer: (A) The single thread where JavaScript code executes
Explanation: JavaScript is single-threaded; the main thread runs all JS code.
Explanation by: Mr. Dubey
JavaScript is single-threaded; the main thread runs all JS code.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
77
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
82%
Success Rate