Start a new project using
npm init
You can name it what you want preferably whatever name you choose should depict what the project does , it will be the backend for our document management system.
function hello(){ | |
alert("hello world") | |
} |
//[[1,2,[3]],4] -> [1,2,3,4] | |
var input = [ | |
[[1,2,[3]],4] | |
]; | |
//check if inputArrayItem is an array | |
//if yes process inputArrayItem again | |
//else put in outputArray | |
var output = []; | |
function processArray(inputArray) { | |
inputArray.forEach(function(inputArrayItem, inputArrayIndex) { |
var express = require('express'); | |
var app = express(); | |
var http = require('http').Server(app); | |
var cfenv = require("cfenv"); | |
var appEnv = cfenv.getAppEnv(); | |
http.listen(appEnv.port, appEnv.bind); | |
app.use(express.static(__dirname + '/public')); |
let bookJson = { | |
"_id" :1, | |
"books" : [ { | |
isbn:"ISBN1", | |
bookName:"Book1" | |
}, | |
{ | |
isbn:"ISBN2", | |
bookName:"Book2" | |
}] |
const timeData = [{ | |
"name" : "lect1", | |
"time": "2:20" | |
}, { | |
"name" : "lect2", | |
"time": "3:30" | |
}, { | |
"name" : "lect1", | |
"time": "4:40" | |
}, { |
const array = [1,3,45,6,7,8,9]; | |
//print the numbers greater than 10 |
map for multi dim array |
const timeData = [{ | |
"name" : "lect1", | |
"time": "2:20" | |
}, { | |
"name" : "lect2", | |
"time": "3:30" | |
}, { | |
"name" : "lect1", | |
"time": "4:40" | |
}, { |
Start a new project using
npm init
You can name it what you want preferably whatever name you choose should depict what the project does , it will be the backend for our document management system.
Yes I am a terminator fan...haha
ok coming down to nerdy talks.
Firstly from the name "Callback methods" itself, it is as if saying:
"I am going somewhere else now to do something else entirely different but a neccessity to complete this task, and I will be back with results and use it to resume and complete the flow ahead."