Category: Node.js

Node.js Tutorial

How to Use MongoDB and Mongoose with Node.js?

Introduction: MongoDB MongoDB is a NoSQL database system designed for storing and retrieving data. It is an open-source database system that uses a document-oriented data model and can handle large amounts of data. MongoDB stores data in collections, which are analogous to tables in a relational database. Each collection is composed of multiple documents, which

Read more

Writing to File in Node.js

Introduction Writing some content to a file is a very common programming task. If you are building an application, then one of the important things is to write the content to a file. Node.js core API provides methods to make it easier for us. Node.js fs module provides API to do file operations. One simplest

Read more

How to delete folder in Node.js? fs.rmdir() – Node.js

Introduction In this blog post, we will learn how to delete a folder programmatically in Node.js. Although there are a lot of other ways to delete folders in Node.js one common way is to use a system command. Node.js provides child_process module to execute shell commands. It is not advisable to use child_process module which

Read more

How to delete a file in Node.js? Remove file with Node

Introduction In this blog post, we will learn how to delete a file or symbolic link in Node.js. Node.js core fs module provides APIs to remove files or symlinks from the file system. fs.unlink() is used to asynchronously remove a file or symbolic link. fs.unlinkSync() is used to synchronously remove a file or symbolic link.

Read more

Coding Interview Questions and Answers

Interviews are a great way for employers to assess a potential employee’s coding ability and knowledge. They help employers to determine the applicant’s capability to work on their project and can secure their confidence in their hire. As such, it is important for potential employees to be well-prepared for coding interviews, as the questions asked

Read more

How to generate AST(Abstract Syntax Tree) of javascript code?

Introduction Abstract Syntax Tree or AST is syntactic tree representations of a code. Each node of the tree denotes a construct occurring in the source code. This is a fundamental part of the way a compiler works. The syntax is “abstract” as it does not represent every detail appearing in the real syntax, but rather

Read more

How does eval() work in Node.js?

Introduction eval or evil? Yes, I am calling eval() function as evil because it is a dangerous function that can execute arbitrary code passed to it. eval() is a global function in JavaScript that dynamically evaluates expressions from a string-based or compiled-code-based input. Let’s understand eval() function working in Node.js Syntax: The function takes only

Read more

OS module in Node.js

Introduction In this blog post, we will learn how can you use Node.js core module to get os specific Information. In the early days of JavaScript, it was just a client-side language but after the introduction of Node.js, it has become a server-side language as well. If you are building your web application by using

Read more

How to Become an Ethical Hacker?

Many people who are interested in entering the world of computers and technology are often curious about how to become an ethical hackers. Becoming an ethical hacker can be a great career opportunity, with potential six-figure salaries and possibility of working with all sorts of organizations around the world. This article provides an overview of

Read more

How to Troubleshoot and Resolve Web Application Performance Issues

Introduction Web application performance is essential to the success of any business. Slow applications can frustrate customers, lowering customer satisfaction and loyalty. In addition, slow applications can also impact a company’s bottom line by costing businesses money in lost sales and extra server costs. This blog post provides an overview of some common problems that

Read more

Please disable your adblocker or whitelist this site!

How to whitelist website on AdBlocker?

How to whitelist website on AdBlocker?

  1. 1 Click on the AdBlock Plus icon on the top right corner of your browser
  2. 2 Click on "Enabled on this site" from the AdBlock Plus option
  3. 3 Refresh the page and start browsing the site