JavaScript

Working with Environment Variables in NodeJS

Reading Time: 3 minutes Introduction Environment variables are one of the most important concepts of Nodejs that allow the application to behave differently for each environment such as development, stage, and production. It is commonly used for: protecting secrets (DB config, API keys, etc) assigning dynamic system resources like port_name, host_name, etc. How to read environment variables from node.js The process core module of Node.js provides the env property Continue Reading

background

Fundamentals of Event Management in React

Reading Time: 5 minutes Introduction Events are some type of interaction between the user and the app, the user performs some action resulting in some reaction from the app. Any time a user clicks, drag-and-drop, fills in the input field or hovers over an element an event occurs. We as a Developer defines the function to respond to the event that occurred. These functions are event handlers and they Continue Reading

Run your aggregation queries at a speed of 14x without spending $$$

Event Bubbling and Capturing in Javascript

Reading Time: 3 minutes Introduction In Javascript, you must have worked with the events. In this blog, we will be going through two important concepts in Javascript related to events i.e. Event bubbling and Event Capturing. Both of these concepts are related to the propagation of events which we call Event Flow. So, let us understand these concepts. Bubbling Event Bubbling is the concept of the sequence of invoking Continue Reading

Hoisting in Javascript: The Complete Overview

Reading Time: 5 minutes Hoisting in javascript refers to the process whereby the interpreter appears to move the declaration of functions, variables(var, let, const), or classes to the top of their scope, prior to execution of the code or we can say that while compiling the code. Also, Hoisting is a concept in JavaScript, not a feature. So let’s take a look into this concept. Introduction to the JavaScript Continue Reading

What is Fluent Wait and Its Advantages In Selenium?

Reading Time: 5 minutes Hello People, As you may be knowing If you want to become an expert at using Selenium Webdriver, one of the most important skills to master is the use of the Wait commands. Waits are essential for executing test scripts and help identify and resolve issues related to the time lag in web elements. This article will offer a detailed description of how testers can Continue Reading

Pure and Impure Functions in Javascript

Reading Time: 2 minutes Introduction Hello readers! In this blog, we will be going through the concept of pure and impure functions in javascript and their advantages. So let’s dive into it. Pure Functions Pure functions are those functions that do not create any side effects. In simpler terms, you will not be changing any external code in a pure function and the output for that function will always Continue Reading

Observable v/s Promise in Angular

Reading Time: 3 minutes Introduction We must have worked with both these concepts – Promise and Observable or must have heard about them. However, we might get confused about which one to use when. To avoid this confusion we must be knowing about the differences so that we can choose the appropriate one for our situation. It all depends on your use case and which one to choose. So Continue Reading

NodeJS Modules| How to create Modules in Nodejs

Reading Time: 4 minutes Introduction In Nodejs, Modules are a small encapsulated unit, which we can reuse, share with anyone, and it’s easier to maintain. It can be a single file or a collection of multiple files or folders. Or we can say a set of a function that we want to include in our application. Types of Module in NodeJS: There are three types of Modules: Local Modules Continue Reading

How To Create Custom Form Control In Angular

Reading Time: 4 minutes An Angular’s reactive forms module enables us to build and manage complex forms in our application using a simple but powerful model. You can build your own custom form control that works seamlessly with the Reactive Forms API. The core idea behind form controls is the ability to access a control’s value( form input value). In this blog, I am going to share how can Continue Reading

Working with Set and Map in Javascript

Reading Time: 3 minutes Introduction In this blog, we will be understanding how we can work with Set and Map in Javascript and their comparison with arrays and objects respectively. Let’s dive into it. Set in Javascript The set allows us to store unique values of any type, be it primitive values or object references. You cannot duplicate any value in a set. You can iterate through the set Continue Reading

HTTP Requests Using Axios Library

How to make HTTP Requests Using Axios Library

Reading Time: 3 minutes Introduction Axios is a Javascript library used to perform HTTP requests for Nodejs and browsers. It supports the Promise API and makes it easy to send requests asynchronously. In this article, we will learn, how to make GET/POST/PUT/DELETE HTTP requests using Axios. Features Make HTTP requests from node.js Supports the Promise API Intercept request and response Transform request and response data Cancel requests Automatic transforms Continue Reading

How to handle Mouse Actions In Selenium?

Reading Time: 4 minutes Hello People, Nowadays Selenium has become the industry standard for implementing custom automated tests because of which it is considered the first go-to solution for every web application. Action Class in Selenium is a built-in feature provided by the selenium for handling keyboard and mouse events. This is something very interesting part of Selenium which is performed using the advanced user interaction API in the Continue Reading

Introduction To Browser Storage and how to persist data in browser.

Reading Time: 4 minutes Irrespective of what javascript framework or library you are working on the one thing that remains constant for all web developers is the browser, where the javascript runs. Learning about browser storage is a must for all web devs.  What is browser storage? The browser and server interact with each other. The server serves the web pages that run on the browser and the user Continue Reading