blob: be2c18669d30d7cdaec16495c1c7de07149f3df2 (
plain)
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
|
var example = require("./example");
/* Call our gcd() function */
x = 42;
y = 105;
g = example.gcd(x,y);
console.log("GCD of x and y is=" + g);
/* Manipulate the Foo global variable */
/* Output its current value */
console.log("Global variable Foo=" + example.Foo);
/* Change its value */
example.Foo = 3.1415926;
/* See if the change took effect */
console.log("Variable Foo changed to=" + example.Foo);
|