Q. What does the 'new' keyword do?

  • (A) Creates a new instance of an object
  • (B) Declares a variable
  • (C) Creates a new array
  • (D) Defines a new function
πŸ’¬ Discuss
βœ… Correct Answer: (A) Creates a new instance of an object
Explanation: The 'new' keyword is used to create instances of a constructor function.
Explanation by: Mr. Dubey
The 'new' keyword is used to create instances of a constructor function.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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