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

         

Recent blogs

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
How to convert a string representation of a floating-point number to number type in JavaScript?

Learn how to use the parseFloat() function to convert a string representation of a floating-point number to number type in JavaScript

Read
JavaScript
How to convert numbers to exponential form in JavaScript?

Learn how to use the toExponential() number method to convert numbers to exponential form in JavaScript

Read
JavaScript
How to convert characters to ASCII code and vice versa in JavaScript?

Learn how to use the charCodeAt() string method and fromCharCode() methods to convert characters to ASCII code and vice versa in JavaScript

Read
JavaScript
How to remove whitespaces from strings in JavaScript?

Learn how to use the trim(), trimStart(), trimEnd() string methods to remove whitespaces from strings in JavaScript?

Read
JavaScript
How to repeat strings in JavaScript?

Learn how to use the repeat() string method to repeat strings in JavaScript

Read
JavaScript
How to check if a string ends with a specific string or a character in JavaScript?

Learn how to use the endsWith() string method to check if a string ends with a specific string or a character in JavaScript

Read
JavaScript
How to add spacing or padding to the beginning of a string in JavaScript?

Learn how to use the padStart() string method to add spacing or padding to the beginning of a string in JavaScript

Read
JavaScript
How to add spacing or padding to the end of a string in JavaScript?

Learn how to use the padEnd() string method to add spacing or padding to the end of a string in JavaScript

Read
JavaScript
How to filter out contents in an array in JavaScript?

Learn how to filter out contents in an array using the array filter() method in JavaScript

Read
JavaScript
How to search for a string inside a string in JavaScript?

Learn how to use the includes() method to search for a string inside a string in JavaScript

Read
JavaScript
How to save logs to files instead of showing it to the console in Node.js?

Learn how to save or write logs to files instead of showing it to the console using the console module in Node.js

Read
Node.js
How to send a message from the cluster worker process to the master process in Node.js?

Learn how to send a message from the cluster worker process to the master process in Node.js

Read
Node.js
How to send a message from the cluster master process to the worker process in Node.js?

Learn how to send a message from the cluster master process to the worker process in Node.js

Read
Node.js
How to run the Node.js server on every CPU core?

Learn how to easily run a Node.js server process in every CPU core

Read
Node.js
Read more articles →