Skip to content

Tag Archives: JavaScript-Questions

In this article, we will set the alignment of content using JavaScript. The DOM Style alignContent property is used to align the items of a… Read More
First-Class Function: A programming language is said to have First-class functions if functions in that language are treated like other variables. So the functions can… Read More
In this article, we will align the text content into the center by using JavaScript. We use HTML DOM style textAlign property to set the… Read More
Problem statement: Given an HTML document with many elements, we have to find if all the selected elements contain the same particular CSS class or… Read More
Destructuring in JavaScript: Destructuring was introduced in ECMA Script 6 version. It is a concept that is used to unpack or free values from arrays… Read More
Suppose we have given an HTML document and the task is to automatically refresh the webpage after a certain period of time in the web… Read More
The textContent and innerHTML are properties of JavaScript. However, there are differences in the way the specified text is handled in JavaScript. Let us take… Read More
In this article, we will create a covid fighter game using HTML, CSS, and JavaScript. In this game, we will create three objects the first… Read More
Project Introduction: “Dragon’s World” is a game in which one dragon tries to save itself from the other dragon by jumping over the dragon which… Read More
In this article, we will see how to extract date from a given string of format “dd-mmm-yyyy” in JavaScript. We have a string, and we… Read More
The purpose of this article is to send the form data and credentials to the PHP backend using AJAX in an HTML document. Approach: Create… Read More
Given below is an HTML document which is basically about how to highlight the searched string result. In this article, we are using HTML, CSS,… Read More
In this article, the task is to check whether an URL contains or not. This can be done by using the Location hash property in… Read More
JavaScript is a single-threaded asynchronous programming language. But what does it mean? What is this event loop in JavaScript that we all keep talking about? … Read More
In this article, we are given a range of years, the task is to find the year having Sunday on 1st January. Approach: We can… Read More