My First Playground

node v8.17.0
version: 0.1.3
endpointsharetweet
This is a playground to test JavaScript. It runs a completely standard copy of Node.js on a virtual server created just for you. Every one of npm’s 300,000+ packages are pre-installed, so try it out:
const express = require('express') const cors = require('cors') const app = express() app.use(cors()) app.post('/api/:username/:password', (req, res) => res.json({ username: req.params.username, password: req.params.password, })) app.listen(3000, () => console.log('Example app listening on port 3000!'))
Loading…

no comments

    sign in to comment