This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const http = require('http'); | |
| const url = require('url'); | |
| let users = [ | |
| { id: 1, name: 'John Doe', email: 'john@example.com', role: 'admin', active: true }, | |
| { id: 2, name: 'Jane Smith', email: 'jane@example.com', role: 'user', active: true }, | |
| { id: 3, name: 'Bob Wilson', email: 'bob@example.com', role: 'user', active: false }, | |
| ]; | |
| const server = http.createServer((req, res) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const http = require('http'); | |
| const url = require('url'); | |
| let users = [ | |
| { id: 1, name: 'John Doe', email: 'john@example.com', role: 'admin', active: true }, | |
| { id: 2, name: 'Jane Smith', email: 'jane@example.com', role: 'user', active: true }, | |
| { id: 3, name: 'Bob Wilson', email: 'bob@example.com', role: 'user', active: false }, | |
| ]; | |
| const server = http.createServer((req, res) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const open = require("open"); | |
| const urls = ['https://github.com', 'https://facebook.com', 'https://upwork.com', 'https://gmail.com', 'https://medium.com']; | |
| for (let i = 0; i < urls.length; i++){open(urls[i])} | |
| console.log("automation launched"); |