In Node.js, the maximum number of listeners that can be added to an EventEmitter by default is ______.

  • 10
  • 100
  • 50
  • Infinity
In Node.js, the maximum number of listeners that can be added to an EventEmitter by default is 10. This is to prevent potential memory leaks caused by adding too many listeners inadvertently.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *