


Add, remove and update elements in a JSON tree using JavaScript
Working with Tree structure is a norm these days. In JavaScript, it’s easy to work with JSON but not so with complex tree structures. But it’s always good to go […]

How to merge an array of array of objects into a single array?
In this quick post, you will learn how to merge / flatten an array of array of objects into a single array of objects in JavaScript. JavaScript provides an easy […]

Install Docker Compose in CentOS 7
In this post, you will learn how to install Docker Compose in CentOS 7 and other CentOS versions. Docker Compose helps to define and run multi-container Docker applications. Download the […]

dangerouslySetInnerHTML Prop in React
Find out what is dangerouslySetInnerHTML in React and why it is named in such a way. Setting HTML from code can lead to exposing your users to a cross-site scripting […]

How to iterate over object properties in JavaScript?
Iterating over an object properties is such a common task in JavaScript. In this tutorial, we will learn different ways to iterate/loop JavaScript objects. for..in The for..in loop can be […]

Update an Excel file in node.js
In this post, you will learn how to update a Microsoft Excel spreadsheet in node.js. We have already seen how to read an excel file in node.js using the npm […]

Play and pause video in JavaScript
In this short post, learn how to play an video file and pause video in HTML with JavaScript. This article will also discuss the <video> html tag which was introduced […]

How to return two values from a Java method?
Short answer: You can’t return two values from a Java method. Java doesn’t support multi-value returns. Long answer: There are workarounds. Scroll down. Returns multiple values as an array This […]

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 […]