showing results for - "my js"
Chiara
27 Jan 2019
1const express = require('express')
2const app = express()
3const port = 3000
4
5app.get('/', (req, res) => res.send('Hello World!'))
6
7var points = [40, 100, 1, 5, 25, 10];
8points.sort((a,b) => a-b)
9
10var newArray = array.filter(function(item) {
11  return condition;
12});
13
14var promise = new Promise(function(resolve, reject) {
15  // do some long running async thing…
16  
17  if (/* everything turned out fine */) {
18    resolve("Stuff worked!");
19  }
20  else {
21    reject(Error("It broke"));
22  }
23});
24
25app.listen(port, () => console.log(`Example app listening at http://localhost:${port}`))
queries leading to this page
mycurry jsmy jsmyscript jsmy js