Regex is a sequence of pattern that is used for matching with a pattern. While searching for data in a text, the search pattern is… Read More
Tag Archives: JavaScript-Questions
New elements can be dynamically created in JavaScript with the help of createElement() method. The attributes of the created element can be set using the… Read More
Given a number and the task is to format the number of an HTML element as currency using CSS and a little bit of JavaScript.… Read More
The Task here is to show how the Fetch API can be used to get data from an API. I will be taking a fake… Read More
Given an HTML document containing some elements and the elements contains some id attribute. The task is to check the element with a specific ID… Read More
The background color of the div box can be easily changed using HTML, CSS, and Javascript. We will use the querySelector() and addEventListener() methods to… Read More
The JavaScript Array.sort() method is used to sort the array elements in place and returns the sorted array. This function sorts the elements in string… Read More
The fade effect is described as the gradual increase and decrease in the opacity of the selected portion. In other words, the fade effect is… Read More
The map(), reduce() and filter() are array functions that transform the array according to the applied function and return the updated array. They are used… Read More
The fade effect is described as the gradual increase and decrease in the opacity of the selected portion. In other words, the fade effect is… Read More
In this article, we will see what are AngularJS Expressions & JavaScript expressions, along with understanding their basic implementation through the illustrations & understand the… Read More
In this article, we are given some images and the task is the create a slow transition from one image to another using Javascript. Prerequisite:… Read More
Given an array containing some array elements and the task is to perform the rotation of the array with the help of JavaScript. There are… Read More
JavaScript is a high-level, interpreted, dynamically typed, and client-side scripting language. HTML is used to create static web pages. JavaScript enables interactive web pages when… Read More
NodeList objects are the collection of nodes, usually returned by properties such as Node.childNodes and methods such as document.querySelectorAll(). Although NodeList is not an actual… Read More