codeBOKER commited on
Commit
8f84296
·
verified ·
1 Parent(s): 3d74b39

Create app.js

Browse files
Files changed (1) hide show
  1. app.js +16 -0
app.js ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ const https = require("https");
2
+
3
+ const urls = [
4
+ "https://google.com",
5
+ "https://github.com",
6
+ "57.144.249.32",
7
+ "https://web.whatsapp.com"
8
+ ];
9
+
10
+ for (const url of urls) {
11
+ https.get(url, (res) => {
12
+ console.log(url, "=>", res.statusCode);
13
+ }).on("error", (err) => {
14
+ console.error(url, "=>", err.code, err.message);
15
+ });
16
+ }