Prerna Tiwari has Published 24 Articles

Javascript Program to Count pairs with given sum

Prerna Tiwari

Prerna Tiwari

Updated on 06-Mar-2023 11:58:52

627 Views

Counting pairs with a given sum is a common problem in computer science and is often used in many real-world applications such as cryptography and data compression. The problem is to find the number of pairs in an array that have a sum equal to a given value. In this ... Read More

Javascript Program to Count 1’s in a sorted binary array

Prerna Tiwari

Prerna Tiwari

Updated on 06-Mar-2023 11:56:21

241 Views

We have two approaches to count 1’s in a sorted binary array. The first one is to iterate through the array and count the 1's. The second approach is to use a binary search algorithm to find the first occurrence of 1 in the array. It is important to ... Read More

How to create Accordion in ReactJS?

Prerna Tiwari

Prerna Tiwari

Updated on 06-Mar-2023 11:52:03

7K+ Views

A UI element called an accordion enables user to expand and compress content portions. A great method to add interactivity to your online application and make it simpler for visitors to explore and find the information they need is to create an accordion in ReactJS. This article will walk ... Read More

How to create a simple counter Using ReactJS?

Prerna Tiwari

Prerna Tiwari

Updated on 06-Mar-2023 11:50:03

7K+ Views

Your online application can benefit greatly from adding interactivity by utilizing ReactJS to create a straightforward counter. In this tutorial, we will outline the procedures needed to build a straightforward counter using ReactJS and offer some sample code to get you started. Step 1: Setting up the React Project ... Read More

How to Create a Responsive Like Button in ReactJS?

Prerna Tiwari

Prerna Tiwari

Updated on 06-Mar-2023 11:47:16

4K+ Views

Creating a responsive like button in ReactJS is a fantastic method to increase the interactivity of your web application. The steps required to create a responsive like button in ReactJS will be discussed in this blog post, along with some sample code, to get you started. Let's first examine ... Read More

How to create a new object from the specified object, where all the keys are in lowercase in JavaScript?

Prerna Tiwari

Prerna Tiwari

Updated on 06-Mar-2023 11:41:42

2K+ Views

There are many methods for creating new objects from older ones in JavaScript. Creating a new object with the same keys as an existing object but with all the keys in lowercase is a common use case. When working with data from many sources that have irregular key casing, this ... Read More

How to Create a Model in Backbone.js?

Prerna Tiwari

Prerna Tiwari

Updated on 06-Mar-2023 11:37:41

179 Views

Backbone.js is a popular JavaScript framework that allows developers to create dynamic and interactive web applications Backbone.js's ability to build models that can be used to store and modify data is one of its primary strengths. In this article, we'll look at how to build a model in Backbone.js and ... Read More

How to create a JavaScript callback for knowing if an image is loaded?

Prerna Tiwari

Prerna Tiwari

Updated on 06-Mar-2023 11:34:54

1K+ Views

Strong programming languages like JavaScript are frequently used to build interactive, dynamic web pages. The loading of images on a website is one of JavaScript's most popular uses. However, loading images might be challenging, particularly when determining whether a load is complete. In this article, we'll go through how to ... Read More

How to convert angular 4 application to desktop application using electron?

Prerna Tiwari

Prerna Tiwari

Updated on 06-Mar-2023 11:29:15

1K+ Views

Utilizing web technologies like JavaScript, HTML, and CSS, you can create cross-platform desktop applications using the popular framework Electron. This article will go over how to use Electron to transform an Angular 4 application into a desktop application. Setting Up Electron Before converting our Angular 4 application to a desktop ... Read More

Generate PDF in ElectronJS

Prerna Tiwari

Prerna Tiwari

Updated on 06-Mar-2023 11:24:57

980 Views

Electron is a popular framework for building cross-platform desktop applications using JavaScript, HTML, and CSS. In this article, we will explore how to generate PDF files in Electron using the jsPDF library. We will cover the basics of PDF generation, how to install and use the jsPDF library, and ... Read More

Advertisements