Hi, I'm Melvin George. I help the world by building quality software.

         

Recent blogs

How to get the name of all the files in a directory using Node.js?

Learn how to use the `readdirSync()` or `readdir()` functions to get the name of all the files in a directory using Node.js

Read
Node.js
How to create multiline strings in JavaScript?

Learn how to use the backticks to create multiline strings in JavaScript

Read
JavaScript
How to get the full HTML of a website using the fetch() method in JavaScript?

Learn how to get the full HTML of a website using the fetch() method in JavaScript

Read
JavaScript
How to split the string at a specific character in JavaScript?

Learn how to use the split() string method to split the string at a specific character in JavaScript

Read
JavaScript
How to reverse the array without mutating the original array in JavaScript?

Learn how to use the slice() and reverse() array methods to reverse the array without mutating the original array in JavaScript

Read
JavaScript
How to create an event in Node.js?

Learn how to use the emit() and on() event methods to create an event in Node.js

Read
Node.js
How to get the IP address of a Website in Node.js?

Learn how to use the resolve4() or the resolve6() function from the dns module to get the IP address of a Website in Node.js

Read
Node.js
How to count the number of properties or keys in an object in JavaScript?

Learn how to use the Object.keys() method to count the number of properties or keys in an object in JavaScript

Read
JavaScript
How to save arrays and objects to localStorage using JavaScript?

Learn how to save arrays and objects to localStorage using JavaScript

Read
JavaScript
How to get the common values from two arrays in JavaScript?

Learn how to use the array filter() and includes() methods to get the common values from two arrays in JavaScript

Read
JavaScript
How to get the file name from a path in Node.js?

Learn how to use the basename() method from the path module to get the file name from a path in Node.js

Read
Node.js
How to measure the running time of a function in JavaScript?

Learn how to use the console.time() and console.timeEnd() methods to measure the running time of a function in JavaScript

Read
JavaScript
How to encrypt and decrypt a message in Node.js?

Learn how to encrypt and decrypt a message in Node.js

Read
Node.js
How to get the highest and lowest number from an array in JavaScript?

Learn how to use the Math.max() and Math.min() methods to get the highest and lowest number from an array in JavaScript

Read
JavaScript
How to merge two arrays and remove duplicates from the array in JavaScript?

Learn how to use the concat() array method and Set() constructor function to merge two arrays and remove duplicates from the array in JavaScript

Read
JavaScript
How to remove empty elements from an array in JavaScript?

Learn how to use the filter() array method or a for loop to remove empty, null, or undefined elements from an array in JavaScript

Read
JavaScript
How to remove duplicate or repeated elements from an array in JavaScript?

Learn how to use the Set() constructor function and the spread operator (...) to remove duplicate or repeated elements from an array in JavaScript

Read
JavaScript
How to check if a variable is an Array in JavaScript?

Learn how to use the Array.isArray() method, constructor property in the variable, or the instanceof operator to check if a variable is an Array in JavaScript

Read
JavaScript
How to copy a portion of an array in JavaScript?

Learn how to use the slice() array method to copy a portion of an array in JavaScript

Read
JavaScript
How to fill an array with a specific value in JavaScript?

Learn how to use the fill() array method to fill an array with a specific value in JavaScript

Read
JavaScript
How to empty the contents in an array in JavaScript?

Learn various ways to empty the contents in an array in JavaScript

Read
JavaScript
How to check if a key or property exists in an object in JavaScript?

Learn how to use the 'in' operator to check if a key or property exists in an object in JavaScript

Read
JavaScript
How to add items to the end of the array in JavaScript?

Learn how to use the push() array method to add items to the end of the array in JavaScript

Read
JavaScript
How to insert an item into an array at a specific index in JavaScript?

Learn how to use the splice() array method to insert an item into an array at a specific index in JavaScript

Read
JavaScript
How to find and remove a specific item from an array in JavaScript?

Learn how to use the indexOf() and the splice() array methods to find and remove a specific item from an array in JavaScript

Read
JavaScript
How to remove an element at a specific position or index from an array in JavaScript?

Learn how to use the splice() array method to remove an element at a specific position or index from an array in JavaScript

Read
JavaScript
How to get the index or position of a specific element in an array in JavaScript?

Learn how to use the indexOf() array method to get the index or position of a specific element in an array in JavaScript

Read
JavaScript
How to create a MD5 hash in Node.js?

Learn how to use the crypto module to create a MD5 hash in Node.js

Read
Node.js
How to create a SHA-256 hash in Node.js?

Learn how to use the crypto module to create a SHA-256 hash in Node.js

Read
Node.js
How to convert a string representation of an integer number to number type in JavaScript?

Learn how to use the parseInt() function to convert a string representation of an integer number to number type in JavaScript

Read
JavaScript
Read more articles →