Skip to content

Tag Archives: JavaScript-Questions

Array.includes() Method: In JavaScript, includes() method is used to determine that a particular element is present in an array or not. It returns true if… Read More
In any object-oriented programming language, classes can have private and public fields. Fields are nothing but variables that hold the information. There are two types… Read More
In this article we will learn how to call promise inside another promise in JavaScript. Problem Statement: You need to first declare a promise using… Read More
Postfix expressions are easier for a compiler to understand and evaluate. So this is a converter that converts infix expression to postfix expression using JavaScript.… Read More
The following approach covers how to replace the names of multiple object keys with the values provided by the user using JavaScript. Problem Statement: You… Read More
In JavaScript objects store data in the form of key-value pairs where the key may be any property of the object. In this article let… Read More
In this article, we will see how to create a function that invokes each provided function with the arguments it receives using JavaScript. It helps… Read More
In this article, we will learn to create static variables in JavaScript. Static keyword in JavaScript: The static keyword is used to define a static… Read More
Using CSS Media Queries, we can easily know that a user is currently viewing our website in which device (using min-width and max-width). It is… Read More
Given an array, the task is to compute the average of an array after mapping each element to a value. Input : arr=[2, 3, 5,… Read More
In JavaScript, arrays are the object using the index as the key of values. In this article, let us see how we can filter out… Read More
In this article, we will learn how to make a new object from the specified object where all the keys are in lowercase using JavaScript.… Read More
In this article, we will learn to create a variable using the user-defined name in JavaScript.  Variables in JavaScript: Basically, it is a container that… Read More
Declaring Variable: A variable can be either declared as a global or local variable. Variables can be declared by var, let, and const keywords. Before… Read More
In this article, we will implement a currency converter that simply converts the currency into any other country’s currency. Pre-requisites: Basic HTML, CSS, JavaScript. Approach:… Read More

Start Your Coding Journey Now!