JavaScript console.log() vs console.table()
Hello friends, you may all know about only the console.log() method to print the result on screen in javascript, but today I will tell you about the javascript console.table() method….
Read more »Remove Duplicate Values from an Array in JavaScript
Hello geeks, in this trick you will learn about how to remove duplicate values from an array in javascript. There is some tricky way to use a single line of…
Read more »Generate a Random Color in JavaScript
In this trick, we will see how we can generate the random number in javascript and make a random color code from it. We will use the Math.floor(), Math.random() and…
Read more »Strip HTML Tags from a String in JavaScript
Hello friends, in this trick, we will see how we can strip out all the HTML tags from a string using the javascript function. To remove all the HTML tags…
Read more »JavaScript Promise.any() Method
In this article, we will see javascript Promise.any() method and how to use it, and what is the purpose of using it. JavaScript promise object based on two code points,…
Read more »JavaScript Promise.all() Method
Hello friends, today we will see the Promise.all() method one of a javascript function to handle the multiple promises requests. JavaScript promise object based on two code points, the one…
Read more »JavaScript – Fire Events Only Once
Hello friends, in this trick, we will see how we can fire the javascript events only once. We will prevent the events to trigger again when its already triggered. This…
Read more »JavaScript Promise.race() Method
Hello guys, How are you? Today in this tutorial, we will learn about the JavaScript Promise.race() method and how we can use it in an easy way. JavaScript promise object…
Read more »How to Open URL in New Tab using JavaScript?
In this code snippet, we will see how we can open the website URL in a new tab of the browser using javascript. Generally, we add the target attribute with…
Read more »Find the Longest Word in a String Using JavaScript
In this trick, we will see how to find the longest word in a string or sentence using the javascript function code. We will check each word one by one…
Read more »