Swap two array elements in JavaScript

In this short post, we are going to see about how to swap two array elements in JavaScript. Here, I have listed some methods that I’ve learnt to swap two […]

JavaScript String.prototype.replaceAll

In JavaScript, we can’t replace the all occurance of substring in a string without use of global regex. In our previous post that is Replace all instances of a string […]

Deep Cloning Objects In JavaScript

In this article, we are going to discuss deep cloning objects in JavaScript. In JavaScript, Object play a major role in storing and sharing data. Because objects in JavaScript are […]

JavaScript String method toLowerCase() and toUpperCase()

JavaScript provides two helpful functions for converting text to uppercase and lowercase. String.toLowerCase()Ā converts a string to lowercase String.toUpperCase()Ā converts a string to uppercase. Both methods works in all modern browsers.

Comments in JavaScript

Letā€™s take a quick look at theĀ JavaScript comments, the following are some of important points about the comments. Comments in JavaScript are used to explain the code and make the program more readable for […]

Feature image for Java related posts.

Array vs ArrayList in Java

In Java, we have two ways to create an array. Array – Simple fixed sized arrays. We cannot change its size. ArrayList – Is a class of Java Collections framework. It […]

Split an array into half in JavaScript

Do you want to split an array into half in JavaScript, divide exactly into equal part? You can use the Array.prototype.splice() method When the length of the array is in […]

Handling NULL value in SQL

In this article we will quickly look how to handle the NULL value in an SQL table. A field with a NULL value is a field with no value. The […]

Breaking the Loop in JavaScript

In this post, we will see how to break out from a loop in JavaScript. When we work with array or an object sometime we need to iterate the each […]

Feature image for Java related posts.

Best way to handle nulls in Java

The Best Feeling at starting stage of my development is seeing the Output without ‘NullpointerException‘, but its very difficult. So handling null values is more important in Coding to get […]

Feature image for Java related posts.

Java String split() Method

In this post we will learn how we can convert a comma-separated String into the arrayList in Java. The split() method that splits the String into array of sub-string based […]

Alter table column size in Oracle

In this post, we will learn how to modify the size of an column in an Oracle table. It’s easy to alter the column size using theĀ ALTER TABLE MODIFYĀ statement. Sometimes […]

Oracle INSERT INTO SELECT

In this post, we will see how to insert a data into a table with the result of select statement. Sometimes we want to move the data from one table […]

split() String Method in JavaScript

In this short post we will see the use cases of split() method in JavaScript. TheĀ split()Ā method separates an original string into an array of sub-strings, based on aĀ separatorĀ string that you […]

Array.find Method in JavaScript

In this post let’s take a look at how the Array.find() method works with some easy examples. Array.find() is a JavaScript method that can searches through the array or an […]

Git Stashing and Cleaning

Today I’m going to share a little information about the Stashing and Cleaning in GIT. While working in environment we all face some messy state, when we are in middle […]

Feature image for Java related posts.

Parse String to JSON in Java

In this tutorial, we will learn how to parse string to JSON using different ways in Java.. JSON stands for Java Script Object Notation, most commonly format used to store […]

Trim String in JavaScript

Today we are going to see how to smash the whitespaces from the String in JavaScript. First let’s see how the whitespaces are created, Space Tab Line terminator character (used […]

String match in JavaScript

Today we are quickly going to look out how the String match() works. This method makes our string contains check easy. Syntax: It allows us to do the creative way […]

Feature image for Java related posts.

String Comparison in Java

In this article, We going to see the different ways to compare strings in Java. String is most commonly using datatype in java. And String comparison is very naturally used […]

Convert an Object to an Array in JavaScript

In this post, we will see how to convert an object to an array in JavaScript. To achieve this we can use below three methods. Object.keys() Object.values() Object.entries() Let’s go […]

Git Branching and Merging

In this post, let’s go through simple Branching and Merging workflow in the GIT. In our day by day work we always take some task or hotfix and work on […]

Timing events in JavaScript

In this article, we will shortly learn about the timing events in JavaScript. Sometimes we may like to execute some part of code certain time later. That’s also called ‘Scheduling […]

CSS Attribute Selectors

In this article, we will learn about how to use CSS attribute selectors. Using the selectors we can select elements with the specified attributes. Selector Description [attribute] Select elements with […]

String building/concatenation in JavaScript

In this article, we will look some of the commons ways to building / concatenating a String in JavaScript. JavaScript contains a number of features for manipulating strings which are […]

Importing JSON into a MongoDB collection

Use the mongoimport utility to import data into a MongoDB database. MongoDB provides the mongoimport utility that can be used to import JSON, CSV, or TSV files into a MongoDB database. mongoimport is located in […]