Category: JavaScript Misc

  • JavaScript WeakMap Object

    The JavaScript WeakMap object is a type of collection which is almost similar to Map. It stores each element as a key-value pair where keys are weakly referenced. Here, the keys are objects and the values are arbitrary values. Syntax Parameter iterable – It represents an array and other iterable object whose elements are in the…

  • JavaScript WeakSet Object

    The JavaScript WeakSet object is the type of collection that allows us to store weakly held objects. Unlike Set, the WeakSet are the collections of objects only. It doesn’t contain the arbitrary values. Syntax Parameter iterable – It represents the iterable object whose elements will be added to a new WeakSet. Points to remember JavaScript WeakSet…

  • JavaScript editable table

    In this article, we will understand how to create an editable table with the help of JavaScript. In the beginning, we will understand a basic overview of JavaScript programming. After that, we will understand this concept with the help of some examples. What is JavaScript? JavaScript abbreviated as JS. It is a dynamic programming language used…

  • Javascript Setinterval

    Javascript can be made to execute a block of code at specific intervals of time. These intervals are critically defined as time events. There are usually two methods for the same. They can be specifically used according to your requirements. Those two methods are Here, we will discuss the setInterval() method in javascript. So, let’s get…

  • Check if the value exists in Array in Javascript

    In a programming language like Javascript, to check if the value exists in an array, there are certain methods. To be precise, there are plenty of ways to check if the value we are looking for resides amongst the elements in an array given by the user or is predefined. Let’s discuss these methods one…

  • Difference Between Static and Const in JavaScript

    We make use of both static and const variables in different languages. In this section, we will describe the difference points between both variables. Let’s discuss. What is a Static variable in JavaScript A static variable is a class property that is used in a class and not on the instance of the class. The…

  • Confirm password validation in JavaScript

    In this chapter, we will discuss password validation using JavaScript. We need to validate a password every time whenever a user creates an account on any website or app. So, we have to verify a valid password as well as put the confirm password validation. For a valid password, the following parameters must be contained…

  • JavaScript offsetHeight

    The offsetHeight is an HTML DOM property, which is used by JavaScript programming language. It returns the visible height of an element in pixels that includes the height of visible content, border, padding, and scrollbar if present. The offsetHeight is often used with offsetWidth property. The offsetWidth is one more property of HTML DOM, which is almost same as…

  • JavaScript localStorage

    LocalStorage is a data storage type of web storage. This allows the JavaScript sites and apps to store and access the data without any expiration date. This means that the data will always be persisted and will not expire. So, data stored in the browser will be available even after closing the browser window. In short,…

  • Remove elements from array in JavaScript

    An array is a variable used to store one or more elements of the same data type. Basically, it stores multiple elements of the same type. Sometimes we need to remove these elements from an array. JavaScript offers several built-in array methods to add or remove the elements from an array easily. Using these methods,…