
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 6709 Articles for Javascript

3K+ Views
In JavaScript, sometimes we need some specific key-value pairs from an object. Suppose we have a large object and only want to select some specific keys. In this article, we will learn how to filter the keys of an object using Lodash. What is Lodash? Lodash is a popular JavaScript library that provides 200+ functions to facilitate web development. It provides helper functions like map, filter, and invoke as well as function binding, javascript templating, deep equality checks, creating indexes, and so on. Lodash can be used directly inside a browser and also with Node.js. Lodash Installation There are ... Read More

4K+ Views
Radians and degrees are units of angular measurement used mainly in mathematics, physics, and engineering. Converting radians to degrees is important, as it is a common operation in trigonometry and other mathematical calculations. In this article, we will learn how to convert Radians to Degrees using JavaScript. .tp-container { padding: 2rem; max-width: 400px; max-width: fit-content; margin-left: auto; margin-right: auto; } .input-group { margin-bottom: 1rem; } .tp-input { width: 100%; ... Read More

1K+ Views
In JavaScript, an ArrayBuffer is a kind of binary structure that enables the manipulation of unprocessed binary. While there is a representation of data with the use of strings such as JSON, it is sometimes useful to indicate that JSON could be transformed into an ArrayBuffer especially when interacting with binary APIs or when there is a need to compress data areas. In this article, we will focus on three widespread methods of converting a JSON object into an ArrayBuffer in JavaScript. Approaches to Convert JSON to ArrayBuffer Using TextEncoder: Suitable for UTF-8 encoding. ... Read More

1K+ Views
JavaScript does not have a specific attribute protection level like the one that exists in some other languages, but we can come close using a few techniques. Protected properties are those that are accessible only to certain methods of an object and are not exposed to outside access. This idea is helpful when securing information against illegitimate access since only specific functions or methods can read or alter it. Approaches to Create Protected Object Properties Using Closures Using WeakMap Using Closures Closures in JavaScript can encapsulate properties and ... Read More

1K+ Views
When building web applications, you may notice that clicking on buttons often leaves an outline or "focus ring" around them. This can be helpful for accessibility, but sometimes it's not desirable for specific designs. In this article, we’ll explore several ways to remove the focus ring from buttons when they are clicked, without sacrificing accessibility for keyboard users. Approaches to Remove Focus Around Buttons on Click Using JavaScript addEventListener Method Using CSS Pseudo Class Using JavaScript addEventListener Method ... Read More

2K+ Views
It is often necessary to change JSON data into Excel sheet, especially when exporting and reporting is concerned, in various web applications. Data is presented and analyzed with the help of the widely spread Excel files, and the transformation of the JSON data to excel enables the users to do analysis and manage data seamlessly. This paper looks at different ways of converting JSON data to Excel files in JavaScript environment through the use of libraries and through other manual means. Approaches to Convert JSON to Excel in JavaScript Using the SheetJS (xlsx) library ... Read More

1K+ Views
Working with web applications often requires parsing some HTML tables to extract the content in the appropriate format, most often in JSON format which is better for storage, transfer, or API communication. One of the most popular formats used for data exchange is JSON, mainly due to its lightweight nature and ease of integration on the front and back end. This article highlights different methods for making a JSON representation of an HTML table in JavaScript. Approaches to Convert HTML Table to JSON Using JavaScript’s querySelector and loops. Using forEach ... Read More

1K+ Views
To make your website an even more enjoyable place for your users, feel free to add animations that will make interactions tastefully eye-candy. One of the widely used effects is heart animation which happens during double click on social media platforms. This article will teach you how to develop a double-click heart animation in HTML, CSS, and JavaScript. Prerequisites For this project, you only need basic knowledge of- HTML for structuring elements. CSS for styling and animations. JavaScript to add interactivity. HTML Structure We’ll ... Read More

1K+ Views
CSV (comma-separated values) file formats are perfect for many applications that store tabular data while JSON (JavaScript Object Notation) is popular among web applications. Because it is understandable and cooperating with javascript is a lot of work transforming the data from CSV into JSON format. specifically, for the case of working with data within JavaScript, different techniques are sought in this article. Converting CSV files to JSON format in JavaScript with syntax, explanation of some examples, and the code. Understanding CSV and JSON Formats CSV: Saving data in rows separated by commas made CSV ... Read More

2K+ Views
Audio files generally include the title of the track, name of the performer, name of the album, genre, and year of publication as embedded metadata. These data may be beneficial in applications for media players, music libraries, and cataloging tools. This metadata can be accessed in JavaScript through various means, especially with the help of libraries such as jsmediatags and music-metadata-browser, goal of this article is to demonstrate several techniques used to retrieve metadata from audio files in JavaScript programming language. Approaches to Access Audio Metadata Using the HTML5 audio Element ... Read More