1 Essential Express.js Interview Question *

Looking for freelance jobs? Design your lifestyle as a freelancer with Toptal.

Submit an Interview Question

What function arguments are available to Express.js route handlers?

The arguments available to an Express.js route handler function are:

  • req - the request object
  • res - the response object
  • next (optional) - a function to pass control to one of the subsequent route handlers

The third argument may be omitted, but is useful in cases where you have a chain of handlers and you would like to pass control to one of the subsequent route handlers, and skip the current one.

There is more to interviewing than tricky technical questions, so these are intended merely as a guide. Not every “A” candidate worth hiring will be able to answer them all, nor does answering them all guarantee an “A” candidate. At the end of the day, hiring remains an art, a science — and a lot of work.

Submit an interview question

Submitted questions and answers are subject to review and editing, and may or may not be selected for posting, at the sole discretion of Toptal, LLC.

* All fields are required

Alejandro Hernandez

Freelance Express.js Developer

ArgentinaToptal Member Since August 30, 2012

Alejandro got his bachelor's degree in software engineering in 2005 and has since been working for software companies of all sizes from all around the globe as a freelancer. Currently, he enjoys working as a full-stack architect in JavaScript projects, where his experience and his deep understanding of architecture and theory are most impactful.

Show More

Michael Cole

Freelance Express.js Developer

United StatesToptal Member Since May 15, 2014

Michael is an expert full-stack web engineer, architect, and consultant with over two decades of experience and a degree in computer science. He has led, consulted, and supported teams in startups, manufacturing, defense, film, and healthcare. Building MVPs and startups, he has experience working on the front end, back end, and DevOps. Michael freelances to broaden his knowledge and participation in the future we are creating through technology.

Show More

Nazar Ivanenko

Freelance Express.js Developer

UkraineToptal Member Since May 13, 2013

Nazar has a very strong background in mathematics and significant experience working in a variety of business environments. Having worked with companies both large and small, he has the background to design simple solutions to complex problems. Highly motivated, he's eager to take on any challenge.

Show More

Looking for Express.js Developers?

Looking for Express.js Developers? Check out Toptal’s Express.js developers.

Toptal Connects the Top 3% of Freelance Talent All Over The World.

Join the Toptal community.

Learn more