SetTimeout Node JS
setTimeout(function () {
console.log("5 secondes");
}, 5000);
console.log("now");
adriendums
setTimeout(function () {
console.log("5 secondes");
}, 5000);
console.log("now");
function createElementFromHTML(htmlString) {
var div = document.createElement('div');
div.innerHTML = htmlString.trim();
// Change this to div.childNodes to support multiple top-level nodes
return div.firstChild;
}
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}`))
so if you are looking to download Node.js fro windows 7
the last working version of node.js that works on windows 7 is
"https://nodejs.org/download/release/v13.6.0/"
Cannot GET /login
const url = require('url');