Sobes.tech
Junior — Middle

Have you had experience working with the Express.js framework for server-side development?

sobes.tech AI

Answer from AI

Yes, Express.js is a minimalist and flexible framework for Node.js, widely used for building server applications and APIs. It simplifies routing, request handling, and working with middleware.

Example of a simple server in Express.js:

const express = require('express');
const app = express();

app.get('/', (req, res) => {
  res.send('Hello, Express!');
});

app.listen(3000, () => {
  console.log('Server is running on port 3000');
});

This code creates a server that responds with "Hello, Express!" to GET requests to the root route.