Tag Archives: JavaScript

Role of equal() and hashCode Methods()

In Java, HashMap is a widely used data structure that stores elements in key-value pairs. It provides constant-time performance for basic operations like adding, removing, and accessing elements. The implementation of HashMap relies heavily on the equals and hashCode methods, which are used to ensure the uniqueness of keys and the efficiency of lookup operations. Continue Reading »

Generating Java Code from Open API

Introduction:-  Open API (open application programming interface) Open API Generator can generate code based on an Open API yaml specification. We can generate request models, response models, and controllers of API. Following are the steps to create java code from Open API:- Step 1:-Create a yaml file for your API By using this Swagger.io, below Continue Reading »

Closure in Javascript

As per the definition of Javascript Developer, Closure is defined as the combination of a function bundled together (enclosed) with references to its surrounding state (the lexical environment). But what is meant by the terms “enclosed”, “surrounding state“, and lexical environment? No need to worry, we’ll discuss their terms and closure in this article with Continue Reading »

Java 8 Features

 Figure 1:Features of Java 8 JAVA 8 is one of the major feature releases of “JAVA programming language” development. It is one of the revolutionary releases of the development of software platforms. The initial version of Java 8 was released on 18 March 2014. It is responsible for upgrading Java programming,  tools, JVM, and libraries. Continue Reading »

JavaScript Arrays

An array is a linear data structure and collection of items stored at a contiguous memory location. Pairs of square brackets [ ] represent an array and all elements are comma (,) separated. An Array can hold multiple values(elements) of any type i.e (String, Number, Boolean, objects, and even other Arrays ) under a single Continue Reading »

HOISTING IN JAVASCRIPT (Variables & Function)

A Person with another programming background is definitely confused with hoisting in Javascript. So let’s deep dive into the hoisting in javascript The Javascript engine creates the global execution context when we execute a piece of Javascript code. Global Execution Context has two phases : (i) Creation Phase (ii) Execution Phase Definition: During the creation Continue Reading »

Access Modifiers in Java

Introduction: In Java, we have to deal with classes, methods, variables, etc. Let’s suppose we have a class and we need to use variables or methods in different classes/packages. OR we want to specify that a variable or method will be accessed within a defined area. To manage the accessibility of any variables, methods, or Continue Reading »

Recursion vs Dynamic Programming — Fibonacci

Introduction of Recursion and Dynamic Programming: Recursion is the process in which a function calls itself until the base cases are reached. And during the process, complex situations will be traced recursively and become simpler and simpler. The whole structure of the process is tree-like. Recursion does not store any value until reaching the final Continue Reading »

Annotations in Java

Annotations are used to provide metadata about class or method in java and can be used while compiling the program. Annotations were introduced in Java 1.5 version. Before that, we had an XML file for configuration. We write annotations with the ‘@’ sign, for example, @Override annotation. Here ‘@’ sign tells the compiler about the Continue Reading »

Debouncing in JavaScript

Debouncing in JavaScript Debouncing is a technique, use of Denouncing we can write better performance code that gets executed repeatedly within a period of time Debouncing ensures that time is taken to task, debouncing prevent unnecessary event on the web Debouncing code ignores unnecessary calls until the call has stopped for a particular time period. Continue Reading »

Currying in JavaScript

What is currying? Currying is a technique of evaluating a function with multiple arguments, into a sequence of functions with a single argument. OR In other words, while a function, rather than taking all arguments at one time, takes the primary one and goes back to a new function that takes the second and returns Continue Reading »

Currying in JavaScript

Currying is a task that takes one argument at a time and brings back a new task awaiting the next argument. It is a modification of functions that translate function from callable as f (a, b, c) to f (a)(b)(c). In this article, we will look at what currying is in Javascript, why you should Continue Reading »

Hoisting in javaScript

Hoisting is a phenomenon in javaScript by which you can access variables and functions even before you have initialized them or you have put some value on them. you can access it without any error. Hoisting allows functions to be safely used in code before they are declared. for Example: var x=7; function getName(){ console.log(“hoisting Continue Reading »

Destructuring in JavaScript

The Destructuring introduced new features of ES6.JavaScript provides a mechanism to handle the array and properties of objects in a much more innovative way. this mechanism is called destructuring. destructuring means implies a complex structure into the simpler parts. Destructuring allows us to extract multiple properties from an object or an Array. It is a Continue Reading »

 JavaScript Closures

A closure is a combination of a function bundled together (enclosed) with references to its surrounding state (the lexical scope). Lexical scoping The stance of a variable asserted in the source code denotes its scope in syntactic figuring. For example: let name = ‘John’; function greeting() {     let message = ‘Hi’;     console.log(message + Continue Reading »

Pure Components

In this article, we will discuss what are pure functions in javascript? What are pure components? When to use pure components in React and when not to use them? What is the difference between Pure components and class and functional components? What are the advantages of pure components over others? When a function is called Continue Reading »

CKEditor with strapi

CKEditor5 react is a modern JavaScript-rich text editor with a modular architecture. It is one of the most used free WYSIWYG rich text editors used because of it is clear UI and customization features. Generate Plugin             Path – my-app npm run strapi generate:plugin wysiwyg Install CKEditor dependencies Path –  ./plugin/wysiwyg npm i @ckeditor/ckeditor5-react @ckeditor/ckeditor5-build-classic Continue Reading »

MobX in React

MobX is the new upcoming state management solution. This blog is all about how to create a simple React-Native app using MobX. MobX is fast in speed than Redux, its easier to learn & requires less boilerplate code. Here are some of its main concepts Stores: Stores create data sources. A store is basically an Continue Reading »

How prototype works in java script

How Prototype Works in JavaScript?

By default, every function has a property called prototype this property by default is empty and you can add properties and methods to it and when you create an object from this function. The object inherits its properties and methods. It has been often confusing to the beginners “How Prototype Works in Javascript” and with this, you will also get the Continue Reading »