HTTP get method: Node.js

Опубликовано: 07 Октябрь 2024
на канале: Technotip
4,360
35

http://technotip.com/3676/network-io-...

Here we require http module, which is built into nodejs, and store it inside a local object called http. We also declare and initialize an array with 3 domain names. Using for loop, we loop through each URL present in the urls array and pass it to a method called ping();

Node.js Video Tutorial List:
http://technotip.com/3674/node-js-vid...