Skip to content

RishabhMakhar-Module4#72

Open
rishabh9926 wants to merge 15 commits intohotwax:mainfrom
rishabh9926:RishabhMakhar-Module4
Open

RishabhMakhar-Module4#72
rishabh9926 wants to merge 15 commits intohotwax:mainfrom
rishabh9926:RishabhMakhar-Module4

Conversation

@rishabh9926
Copy link

In module 4, I have implemented 4 problem statement in JavaScript and Node JS, along with this added screenshots and Unit testcases.

Problem Statement 1 : WebScrapper (count the words from webpages)
In this problem statement, I have use fs module to read the files, axios and cheerio for WebScrapping,

axios to fetch the html data from
webpages and cheerio to parse the data.
Problem Statement 2 : (search and sort the employee data in text file)
In this problem statement, I have use fs to perform the certain File operation such as Add
employee, Delete employee, Search and Sort employees.

Problem Statement 3: (Multithreading in JavaScript)
In this problem statement, I have use promises, async, await, async – lock, and setTimeout.

Problem Statement 4: (Serialization and Deserialization in JavaScript)
In this problem statement, I have use JSON.stringify() for serialization and JSON.parse() to
deserialize .ser file.

@@ -0,0 +1,74 @@
// For creating a delay creating promise with settimeout (function)
const awaitTimeout = delay => new Promise(resolve => setTimeout(resolve, delay));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can make this program menu-driven.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants