Skip to content

Tag Archives: JavaScript-Questions

Given an array of objects and the task is to find the occurrences of a given key according to its value. Example: Input : arr… Read More
There are many occasions when we get to find out the first non-null or non-undefined argument passed to a function. This is known as coalescing. … Read More
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
Given a multiline string and the task is to replace line breaks with <br> tag. Example: Input: `Geeks for Geeks is a computer science portal where people… 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

Start Your Coding Journey Now!