Tag: javascript
Javascript | Another alternative to using JSON.stringify, especially for large objects
JSON.stringify function converts an object into a string format. It works well for small objects. A small object means it has fewer elements or fewer nested elements. But if an object is very long and very much nested also, then
Javascript Array Methods One Must Know
filter The filter is an array function in vanilla.js which returns a new array by filtering the filter item provided to the filter function. Here is ES6 syntax for this function: Reduce This function basically executes a given function provided
How “this” is used in callback function in javascript
The “this” keyword of JavaScript causes confusion for people, who start to use Javascript language and mainly for those who start after using the other languages. Here the main question is how to use “this” in the right way in
Record Video on Web through Javascript
Many browsers now have the facility to access video and audio input from the user. However, relying on the browser, it would be a full dynamic and inline experience, or it’d be delegated to a special app on the user’s
Record Audio on Web through Javascript
Introduction Many browsers now have the power to access video and audio input from the user. However, counting on the browser, it’d be a full dynamic and inline experience, or it might be delegated to a different app on the
RxJS (Reactive Extensions for JavaScript)
Introduction to RxJS RxJS is a popular library among web developers. It provides some features like functional and reactive programming patterns that support working with events and streams. Rxjs provides the functionality to write asynchronous code. The current stable version
Why not use JSON.stringify in JavaScript?
Why JSON.stringify Shouldn’t Be Used To Compare Objects In JavaScript? In javascript, equality operator == or === can be used to compare numerics and strings. But when we will compare objects using these operators, then it will not work as
JavaScript: Return Object Literal From Arrow Function
Arrow function Arrow function was introduced in ES6, which provides a better and shorter way to write functions in JavaScript. Its another advantage is that it does not bind its own “this”. We can also say that the context inside
Adding days to date type in Javascript – Another solution
I have already written a blog on this topic. Please refer to the following link for detail: Click This Link Introduction I will show another solution to add a number of days to a date string. The solution provided in