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....
In this article, we will learn how to remove the last n elements from the end of the given array in 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....
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....
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....
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....
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:...
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....
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....
The slice() method in JavaScript is used to extract a portion of a string and create a new string without modifying the original string....
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:...
In this article, we will learn how to get and set the scroll position of an HTML element using JavaScript....