
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 224 Articles for Javascript Library

811 Views
Base64 encoding is widely used as an ASCII string to represent binary data. However, converting Base64 strings to JSON is a common data exchange specification. This is because JSON is a human-readable format and is easily converted into JavaScript. In this article, we will explore methods to convert Base64 string to JSON string by giving examples and output for each. What is Base64? Base64 is a type of encoding scheme that represents binary data in an ASCII string. It generally gets used to encode an image, file, or other non-textual data to transfer safely across a text-based protocol like ... Read More

5K+ Views
Sometimes we are given an object and we want to extract only the key-value pairs that meet certain criteria. In this article, we are going to discuss how we can filter objects by values in Lodash. Prerequisite Lodash: Lodash is a popular JavaScript library used to deal with a variety of functions such as arrays, objects, strings, and more. Install Lodash We can install the Lodash library in the project by adding it via CDN or npm using the following command: npm install lodash Approaches to Filter Object by Values ... Read More

3K+ Views
Sometimes, we need to find the beginning and end of the day using MomentJS. This functionality has different real-life applications, such as filtering data within a day’s range, generating daily reports, and scheduling tasks at specific times. In this article, we will discuss how to find the beginning and end of the day using MomentJS. Prerequisite Moment.js: Moment.js is a popular JavaScript library used to deal with dates. This library is used to modify, parse, validate, manipulate, and display dates and times in JavaScript. Install Moment.js We can install the Moment.js library in ... Read More

4K+ Views
Sometimes, when doing a project for a specific organization in a particular country, we need to convert it into the users' local timezone. In this article, we are going to learn how to convert a date to a user's local timezone using moment.js. Prerequisite Moment.js: Moment.js is a popular JavaScript library used for dealing with dates. This library is used to modify, parse, validate, manipulate, and display dates and times in JavaScript. MomentJS works with UTC (Coordinated Universal Time) by default or any other specific time zone. Install Moment.js: npm install moment ... Read More

5K+ Views
Sometimes while working with with dates in JavaScript, it is common to need specific dates for calculations or validations. In this problem, we are given a date in the form of year-month-date and we have to subtract one month from it. In this article, we are going to learn how we can subtract one month from a given date using Moment.JS. Prerequisite Moment.js: Moment.js is a popular JavaScript library used for dealing with dates. This library is used to modify, parse, validate, manipulate, and display dates and times in JavaScript. Install Moment.js We ... Read More

6K+ Views
Sometimes while working with dates and times, we need to manipulate or normalize them to a specific time. One such common need is to reset a date's time to the start of the day, i.e. 00:00:00 midnight. In this article, we are going to learn different approaches to set the time to 00:00:00 using Moment.js. Prerequisite Moment.js: Moment.js is a popular JavaScript library used to deal with dates. This library is used to modify, parse, validate, manipulate, and display dates and times in JavaScript. Install Moment.js We ... Read More

885 Views
React is a powerful JavaScript library developed by Facebook for creating user interfaces specifically for single-page applications. The component-based architecture allows developers to create reusable UI components. This makes the development process efficient and maintainable. A typical React application is structured in directories and files. There are different file extensions used in React development, each with a particular purpose. For instance .js or .jsx files are for JavaScript and JSX code, respectively. On the other hand, .css files are for formatting elements. Knowing these file extensions is crucial for several reasons: improves code readability; helps fix bugs and ensures ... Read More

1K+ Views
Machine learning, which enables programmers to create intelligent systems that can pick up new information and adapt to it, is a technique that is increasingly used in modern software development. It could be difficult to decide which machine learning framework or library to use with so many options available. Three well-known machine learning frameworks—TensorFlow, TensorFlow.js, and Brain.js—will be compared and contrasted in this article. We'll go through the main traits, benefits, applications, and restrictions of each framework. At the conclusion of this essay, you will have a better understanding of which framework is ideal for your particular use case and ... Read More

567 Views
Fabric.js is a powerful tool written in JavaScript that makes it easier to build applications with interactive and dynamic graphics using HTML5 canvas. It offers many useful features, including the ability to add controls such as resizing and rotation handles to objects on the canvas. Sometimes, though, you might want to take away these controls from certain objects, like text, to limit what users can do. In this article, we'll show you how to remove controls from a text canvas using Fabric.js, using a simple example that you can follow along with. How to Remove Controls of a Text? To ... Read More

215 Views
Functional programming is a popular paradigm in JavaScript development, emphasising immutability, pure functions, and higher-order functions. It promotes writing clean, concise, and maintainable code. To facilitate advanced functional programming techniques, several JavaScript libraries have emerged, providing powerful tools and utilities. In this article, we will explore three such libraries: Ramda, Lodash, and Immutable.js. We will dive into code examples, explain their features, and showcase the benefits they bring to functional programming in JavaScript. Ramda: Functional Programming made Easy Ramda is a powerful library that promotes functional programming in JavaScript. It focuses on immutability and provides a wide range of functions ... Read More