Anyone please explain error.syscall and what is error.syscall !== "listen"? [duplicate]

  error-handling, javascript, node.js, system-calls, throw
  if(error.syscall !== 'listen'){
      throw error;
  }

Confused with these 3 questions :

  1. What is syscall in error here?
  2. What is "listen"?
  3. Can we have anything else at place of "listen"?

Source: Ask Javascript Questions

LEAVE A COMMENT