Skip to content

Tag Archives: JavaScript-Questions

Given an array of Promises, we have to run that in a series. To do this task, we can use then(), to run the next… Read More
To navigate URL in iframe with JavaScript, we have to set the src attribute or return the value of src attribute in an iframe element.… Read More
Having class = “selected” depending on what page / URL is. This concept is very important especially when designing a navbar for a website so… Read More
In this article, we will learn How to convert a value to a safe integer using JavaScript. We have given a number, and we have… Read More
In this article, we will learn to display a message when a number is between the given range using JavaScript. We take a number from… Read More
In this article, we will see how to detect the runtime environment in which our JavaScript code is running. Suppose you are building an application… Read More
In this article, we are given a multiline string and the task is to replace line breaks with <br> tag. Example: Input: `Geeks for Geeks… Read More
The task is to return true if the bottom of the page is visible. We can achieve this by simply using the height of the… Read More
In this article, we will learn how to check if the provided value is an object created by the Object constructor in JavaScript. Almost all… Read More
Given an array and the task is to count the number of data types used to create that array. Example: Input: [1, true, "hello", [],… Read More
Project Introduction: In this article, we will learn how to make a simple text editor JavaScript application where we can manipulate the user input in… Read More
In this article, we will learn how to calculate the number of days left until next Christmas using JavaScript. Christmas marks the birth of Christ,… Read More
In this tutorial we are going to create a web app that fetches motivational and inspirational quotes using an API. Application Requirements: Bootstrap 4 CDN… Read More
Given an array arr and number n and the task is to write a function that returns an array whose items are larger than n.… Read More
Javascript has events to provide a dynamic interface to a webpage. These events are hooked to elements in the Document Object Model(DOM). There are three… Read More

Start Your Coding Journey Now!