SHARE
TWEET

Untitled

a guest Aug 23rd, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const express = require('express');
  2. const app = express();
  3. const port = 3000;
  4.  
  5. app.get('/debug', (req, res) => {
  6.   console.log('This is a console message');
  7.   res.send('Using debug module with Node.js');
  8. });
  9.  
  10. app.listen(port, () => {
  11.   console.log(`Server running on port ${port}`);
  12. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top