Skip to content

Commit 49c2d2e

Browse files
Update app.js
adds comments explaining function and its arguments
1 parent ee7a5a7 commit 49c2d2e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ app.get('/health', (req, res) => res.send({"status": "OK", "time": new Date()}))
2121
var port = process.env.PORT || 8080;
2222
app.listen(port);
2323

24+
// setInterval(callback, delay, [arg1, arg2, ...])
25+
// callback: The function to execute at each interval.
26+
// delay: Time in milliseconds between each execution of the callback.
27+
// arg1, arg2, ... (optional): Additional arguments passed to the callback function.
28+
2429
setInterval(function(str1, str2) {
2530
var text = makeid(40);
2631
var ran = Math.random()

0 commit comments

Comments
 (0)