Aayush Mohan Sinha

Aayush Mohan Sinha

89 Articles Published

Articles by Aayush Mohan Sinha

Page 3 of 9

How to Catch all JavaScript Errors and Send them to the Server?

Aayush Mohan Sinha
Aayush Mohan Sinha
Updated on 12-Sep-2023 538 Views

JavaScript is a famous programming language that is one of the core languages of the World Wide Web (WWW) alongside HTML and CSS. It allows the programmer to capture events and modify the Document Object Model (DOM). In this article we are going to learn how we can catch all JavaScript errors and send them to the server. What is onerror? onerror is an event that is fired whenever an error occurs while loading an external file or resource or some error occurs while executing a script. Syntax onerror = (event, source, lineno, colno, error) => {}; Parameters: The ...

Read More

How to Catch a ReferenceError with onerror?

Aayush Mohan Sinha
Aayush Mohan Sinha
Updated on 12-Sep-2023 213 Views

JavaScript is a famous programming language that is one of the core languages of the World Wide Web (WWW) alongside HTML and CSS. It allows the programmer to capture events and modify the Document Object Model (DOM). In this article we are going to see how we can catch ReferenceError with the help of onerror event. What is ReferenceError? A ReferenceError is a form of error that may occur when the program tries to access a variable or object that doesn't exist. This can occur when a variable's name is spelled incorrectly or when the user attempts to access an ...

Read More

How to Create Image Accordion using HTML and CSS?

Aayush Mohan Sinha
Aayush Mohan Sinha
Updated on 07-Sep-2023 814 Views

In the domain of web design, discovering groundbreaking methods to exhibit images and other multimedia content is a pivotal facet of developing a captivating user experience. One popular technique that has gained significant traction in recent years is the image accordion, which allows users to easily navigate through a collection of images by expanding and collapsing individual sections. In this article, we will explore the steps required to create an image accordion using HTML and CSS, providing you with a simple yet effective way to enhance the visual appeal of your website. Whether you’re a seasoned web developer or just ...

Read More

How to create HTTPS Server with Node.js?

Aayush Mohan Sinha
Aayush Mohan Sinha
Updated on 07-Sep-2023 1K+ Views

As the consumption of the cyberspace and cloud-dependent applications proliferates, the gravity of safeguarding online data and transactions becomes more apparent. One of the most commonly employed methodologies for securing online communications is HTTPS, which provides an assurance that the information conveyed between the server and clients is ciphered and cannot be effortlessly intercepted by malevolent third parties. In this manuscript, we will probe into the process of building an HTTPS server with Node.js, an influential and adaptable platform for developing server-side applications using JavaScript. We will go over the fundamentals of SSL certificates, the essential components of an HTTPS ...

Read More

How to Change the Style of a Tag Title Attribute?

Aayush Mohan Sinha
Aayush Mohan Sinha
Updated on 07-Sep-2023 6K+ Views

The title attribute of the tag is a significant facet of web design that furnishes supplementary information about a link when a user hovers over it. Nonetheless, the pre-existing style of the title attribute may not always comply with the visual appeal of a website, compelling designers to investigate ways to personalize it. In this write-up, we will examine various tactics and approaches accessible to adjust the style of the tag title attribute. By the conclusion of this article, you will have a more comprehensive comprehension of how to implement this uncomplicated yet potent modification to enhance the ...

Read More

Using Kadane’s algorithm to find maximum sum of subarray in JavaScript

Aayush Mohan Sinha
Aayush Mohan Sinha
Updated on 04-Aug-2023 685 Views

Exploring sophisticated algorithms is key to unlocking the true potential of JavaScript programming, particularly when it comes to solving complex computational challenges. Among these algorithms, Kadane's algorithm stands out as a formidable tool for efficiently finding the maximum sum of subarrays within an array. This remarkable technique allows developers to optimize their code and enhance the performance of their applications when dealing with large data sets. In this article, we delve into the intricacies of Kadane's algorithm, unveiling its inner workings and showcasing its efficacy in tackling the task of identifying the maximum sum of subarrays in JavaScript. By grasping ...

Read More

Retrieving the decimal part only of a number in JavaScript

Aayush Mohan Sinha
Aayush Mohan Sinha
Updated on 04-Aug-2023 3K+ Views

Precision and accuracy play vital roles in numerical computations, and in the realm of JavaScript programming, the ability to extract the decimal part of a number is a crucial skill. Whether it is for rounding, comparison, or further manipulation, retrieving only the decimal part of a number can significantly enhance the precision and control over calculations. This article aims to explore a comprehensive approach to retrieving the decimal part exclusively in JavaScript, employing lesser-known techniques and rarely used functions. By mastering this technique, developers can ensure greater control over numeric operations, paving the way for more sophisticated algorithms and precise ...

Read More

Representing seconds in HH:MM:SS in JavaScript

Aayush Mohan Sinha
Aayush Mohan Sinha
Updated on 04-Aug-2023 3K+ Views

The representation of seconds in the format of HH:MM:SS holds great significance in various domains, as it enables precise time tracking and measurement in JavaScript applications. Mastering the art of converting raw seconds into a visually comprehensible HH:MM:SS format is a valuable skill for developers seeking to present time-based data with utmost accuracy and clarity. In this article, we delve into the intricacies of representing seconds in the HH:MM:SS format using JavaScript, exploring the underlying algorithms and methodologies that empower developers to elegantly display time intervals in a human-readable manner. Problem Statement Given a number representing the duration in seconds, ...

Read More

Repeating string for specific number of times using JavaScript

Aayush Mohan Sinha
Aayush Mohan Sinha
Updated on 04-Aug-2023 2K+ Views

In the realm of JavaScript programming, the ability to repeat a string for a specific number of times is a significant functionality that can greatly enhance the efficiency and versatility of code. JavaScript, being a flexible and powerful language, provides developers with the tools to accomplish this task effortlessly. Although the concept may seem elementary, mastering the art of repeating a string for a specific number of times requires an understanding of the underlying mechanisms and the appropriate utilization of rarely used functions. In this article, we will explore the intricacies of repeating strings using JavaScript, diving into the less ...

Read More

Function that returns the minimum and maximum value of an array in JavaScript

Aayush Mohan Sinha
Aayush Mohan Sinha
Updated on 04-Aug-2023 909 Views

Understanding the range of values within an array is a crucial aspect of data analysis and manipulation in JavaScript. When faced with large datasets or complex algorithms, having a reliable function that can efficiently determine the minimum and maximum values of an array becomes indispensable. This article delves into the intricacies of creating a robust JavaScript function that can effortlessly extract the extreme values from an array, enabling developers to gain valuable insights and make informed decisions based on the data at hand. By exploring the step-by-step implementation and leveraging rarely used programming techniques, we empower developers to enhance their ...

Read More
Showing 21–30 of 89 articles
« Prev 1 2 3 4 5 9 Next »
Advertisements