1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
| var userCount = 0;
var userbytwo = 0; /* added the var definition for new variable, userbytwo here */
/**
* This is the function that handles incoming requests
**/
var serverHandler = function(req,res) {
userCount++;
userbytwo = userbytwo + 2;
/* added the incrementing by two for your new variable, userbytwo here */
res.write('Hello from yourname\n'); /* edit this line to say your name */
res.write('We have had '+userCount+' visits!\n');
res.write('We can also count by two. We have had '+userbytwo+' visits!\n');
res.end('Good Bye');
};
|