Create a Video and Audio Recorder with JavaScript MediaRecorder API
WebRTC is very popular for accessing device cameras and device microphones and streaming the video or audio media in the browser. But in many cases, we might need to record the streaming for future use or for users (Like user might want to download the streaming, etc.). In that case, we can use the MediaRecorder API to record the media streaming....
read more
How to remove n elements from the end of a given array in JavaScript ?
In this article, we will learn how to remove the last n elements from the end of the given array in JavaScript....
read more
How to return HTML or build HTML using JavaScript ?
JavaScript is very powerful and with it, we can build dynamic web content and add many features to a web application.  With HTML, we create the structure of the web page and the same thing can also be done with JavaScript....
read more
How to Toggle Password Visibility using HTML and JavaScript ?
In this article, we will learn about how to toggle password visibility using HTML and Javascript. Passwords are those input types that take hidden inputs. It can be shown and hidden from the user by toggling its type between text and password....
read more
How to check the given element has the specified class in JavaScript ?
Sometimes we need to check the element has the class name ‘X’ ( Any specific name ). To check if the element contains a specific class name, we can use the contains method of the classList object....
read more
JavaScript Math floor() Method
Javascript Math.floor() method is used to round off the number passed as a parameter to its nearest integer in a Downward direction of rounding i.e. towards the lesser value....
read more
JavaScript Array keys() Method
The Javascript array.keys() method is used to return a new array iterator which contains the keys for each index in the given input array. Syntax:...
read more
JavaScript Map set() Method
The map.set() method is used to add key-value pairs to a Map object. It can also be used to update the value of an existing key. Each value must have a unique key so that they get mapped correctly....
read more
How to convert a string into kebab case using JavaScript ?
Given a string with space-separated or camel case or snake case letters, the task is to find the kebab case of the following string....
read more
JavaScript String slice() Method
The slice() method in JavaScript is used to extract a portion of a string and create a new string without modifying the original string....
read more
JavaScript Array map() Method
JavaScript Array map() Method method creates a new array with the results of a called function for every array element. This function calls the argument function once for each element of the given array in order. Syntax:...
read more
How to Get and Set Scroll Position of an Element using JavaScript ?
In this article, we will learn how to get and set the scroll position of an HTML element using JavaScript....
read more