Q. What does 'this' refer to in a regular function?

  • (A) Global object
  • (B) Window object in browser
  • (C) Object that called the function
  • (D) All of the above
πŸ’¬ Discuss
βœ… Correct Answer: (D) All of the above
Explanation: 'this' can refer to different things depending on the context.
Explanation by: Chandani
'this' can refer to different things depending on the context.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
75
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Chandani
Publisher
πŸ“ˆ
82%
Success Rate