Skip to content

Tag Archives: JavaScript-Questions

Given two arrays the task is to create an object from them where the first array contains the keys of the object and the second… Read More
Given two numbers and the task is to check the given numbers are approximately equal to each other or not. If both numbers are approximately… Read More
In this article, we will know how to check if a value of primitive or not. JavaScript provides six types of primitive values that include… Read More
As a good programming practice, we should write individual functions/methods for dealing with individual actions. And, writing only one method/function for all actions is a… Read More
JavaScript variables can store any type of value. The JavaScript typeof operator can be used to find out the native type of value. It returns… Read More
An arithmetic operation operates on two numbers and numbers are called operands.  Multiplication The multiplication operator (*) multiplies two or more numbers. Example: var a… Read More
In this article, we will see how to open a webcam and show a live video using JavaScript. For this we are going to use… Read More
In this article, we will learn how to return the singular or plural form of the word based on the input number. This can be… Read More
By default, object keys are returned as strings, but it is possible to return them as a method. Steps are follows: Get the object keys.… Read More
While visiting different shopping websites like Flipkart and Amazon you have seen a counter on each product, that counter is used to specify the quantity… Read More
The following approach covers how to check if the provided value is of the specified type in JavaScript. Approach: The Object.is() JavaScript method introduced in… Read More
In CSS, the align-items property is used to align elements in a flex container. This can be similarly implemented using JavaScript by selecting the specific… Read More
In this article, we will be creating marquee text using JavaScript. This effect can be achieved using the <marquee> tag, but the marquee has been… Read More
In this article, we will be extracting the range of elements from an array without mutating it. Here, mutation means the changing of the original… Read More
The document method getElementById() returns an element object representing the element whose id property matches with the given value. This method is used to manipulate… Read More

Start Your Coding Journey Now!