UNPKG
math_exampl3
Version:
latest (1.0.2)
1.0.2
1.0.1
1.0.0
An example of creating a package
math_exampl3
/
lib
/
call_counter.js
11 lines
(7 loc)
•
226 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
// JavaScript source code
var
internal_call_counter =
0
;
function
count_call
(
) { ++internal_call_counter;
console
.
log
(
'You have made '
+ internal_call_counter +
' calls!'
); }
module
.
exports
= count_call;