What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-11-09 06:03:13
sample express app
//to run : node filename.js const express = require('express') const app = express() const port = 3000 app.get('/', (req, res) => res.send('Hello World!')) app.listen(port, () => console.log(`Example app listening at http://localhost:${port}`)) /... Add solution -
Javascript 2021-11-08 06:11:13
define a route with path paramters in nodejs
var users = { 'azat': { email: '[email protected]', website: ' http://azat.co ', blog: ' http://webapplog.com ' } }; var findUserByUsername = function (username, callback) { // Perform database query that calls callback when it's done // Thi... Add solution -
Javascript 2021-11-04 21:23:13
express hello world example
//to run : node filename.js const express = require('express') const app = express() const port = 3000 app.get('/', (req, res) => res.send('Hello World!')) app.listen(port, () => console.log(`Example app listening at http://localhost:${port}`)) /... Add solution -
-
Go 2021-10-29 19:30:24
give a cell a bottom border google script
var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheets()[0]; var cell = sheet.getRange("B2"); // Sets borders on the top and bottom, but leaves the left and right unchanged // Also sets the color to "red", and the bo... Add solution -
Javascript 2021-10-29 19:19:17
sequelize mysql node js tutorial
const express = require("express"); const bodyParser = require("body-parser"); const cors = require("cors"); const app = express(); var corsOptions = { origin: "http://localhost:8081" }; app.use(cors(corsOption... Add solution