Posts from JavaScript

JavaScript image Classification in browser with ml5.js using MobileNet

By Faruque Ahamed Mollick

In this tutorial, I am going to show you how to perform the image classification task on the browser using the ml5 JavaScript library with the MobileNet model. I hope, you are alre.... Read More

Merge Multiple Objects in JavaScript

By Faruque Ahamed Mollick

Did you ever try to merge multiple objects into one single object in JavaScript? You may wonder how to create one object that will hold all the items of our objects. Well, this art.... Read More

Get each color component from RGB string in Javascript

By Faruque Ahamed Mollick

Did you ever think about separating each color component (red, green, blue) from an RGB color string? Here in this article, I am going to show you how you can separate and get the .... Read More

Get the HTML img tag src attribute value in JavaScript

By Faruque Ahamed Mollick

I am sure that you must familiar with the HTML img tag. We all know that using this tag, we can display an image on a web page. All we have to do is just to give the image path ins.... Read More

Get child element in JavaScript HTML DOM

By Faruque Ahamed Mollick

In JavaScript HTML DOM, we can easily get the child element of a parent element using the childNodes property. Suppose we have div element and a child div inside this just like you.... Read More

Get last n items from an array in JavaScript

By Faruque Ahamed Mollick

I am again here with a new JavaScript solution. In this tutorial, you are going to learn how to get last n items from an array in JavaScript programming. For example, suppose you h.... Read More

Remove Duplicate Values from a JavaScript Array

By Faruque Ahamed Mollick

In this tutorial, you will see how to remove duplicate values from a JavaScript array with simple and quick examples of JS code. First of all, I would like to let you know that, th.... Read More

Send POST data in JavaScript using XMLHTTPRequest

By Faruque Ahamed Mollick

On the web, it is often necessary to send HTTP requests with post data. In this article, you will learn how to send post data in JavaScript using the XMLHTTPRequest object. The XML.... Read More