forked from kiddkai/atom-node-debugger
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patha.js
More file actions
61 lines (50 loc) · 1.1 KB
/
a.js
File metadata and controls
61 lines (50 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
var b = require('./b')
, result
console.log("command line arguments:")
console.log(JSON.stringify(process.argv.slice(2)))
console.log("environment:")
console.log(process.env.key1)
var c = 100;
var e = {
foo: 'bar',
numval1: 10,
boolval1: true,
strval1: 'str',
arrVal1: [1,2,3,4],
objval1: {
numval2: 20,
boolval2: true,
strval2: 'str2',
arrVal2: [2,3,4,5],
objval2: {
numval3: 30,
boolval3: true,
strval3: 'str3',
}
}
}
var strVal = "a string value";
var arrVal = [1,2,3,4];
var dateVal = new Date(1994, 02, 24, 12, 34);
function localFunc(arg1, arg2) {
var zz = 10;
var xx = 20;
return zz + xx;
}
var f_res = localFunc("strParam", 9991);
console.log('this is a log')
console.error('this is an error')
var d = 10;
var Person = function (firstName, lastName) {
this.firstName = firstName;
this.lastName = lastName;
this.toString = function() {
return firstName + " " + lastName;
}
};
var person = new Person('Alice', 'Babs');
console.log(person.toString());
b(100, function(err, res) {
result = res
console.log('result is: ', result)
});