index.js
// node.js
var express = require("express");
var app = express;
app.get("/", (req, res) => {
res.json({
"key":"Value"
})
});
app.listen(3000,(req, res) => {
console.log(3000);
});
var app = require('express')();
var app = require('express')();
app.get("/", (req, res) => {
res.json({
"key":"Value"
})
});
app.listen(3000,(req, res) => {
console.log(3000);
});