Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const express = require('express');
- const app = express();
- const port = 3000;
- app.get('/debug', (req, res) => {
- console.log('This is a console message');
- res.send('Using debug module with Node.js');
- });
- app.listen(port, () => {
- console.log(`Server running on port ${port}`);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement