Articles on Trending Technologies

Technical articles with clear explanations and examples

How to Push Anything to GitHub using Git Bash?

Git
Geethanjali Gandu
Geethanjali Gandu
Updated on 12-Nov-2024 522 Views

Git is a fast, scalable, distributed revision control system with an unusually rich command set that provides both high-level operations and full access to internals. Here is a step-by-step guide with examples that explains how you can push your code to GitHub using Git Bash, with creating repository to updating the code and pushing the changes back to GitHub using Git Bash.1. Install Git Bash Download Git Bash from the official Git website. Run the installer and follow the setup instructions. Once installed, open Git Bash by ...

Read More

How to update Node.js and NPM to the latest version?

Moksh Gupta
Moksh Gupta
Updated on 12-Nov-2024 859 Views

Having the latest Node.js and NPM is crucial as developers get to have access to the new features, security fixes, and improved performance. In those tools, you need to learn the following general steps in order to update them quickly This is the simplest guide to update those two tools. Why Update Node.js and NPM? Here are some reasons why you should update Node.js and NPM − Access New Features: Every one or two updates, new features and improvements make their ways into the software. Improved Security: Updates patch and other vulnerabilities in the environment so as to remove ...

Read More

How to Style the Selected Label of a Radio Button?

Pankaj Kumar Bind
Pankaj Kumar Bind
Updated on 12-Nov-2024 1K+ Views

In this article, we will style the label for the radio button which is currently selected. CSS also allows you to eliminate the default radio button and style the selected and unselected states of the labels. This will be accomplished with the help of the :checked pseudo class. Additionally adjacent sibling selectors will be used to achieve this effect. Styling the Selected Label of a Radio Button To begin with, we set the display property of the original circular radio button to none and it disappears from view. Next, we apply default styles to the label elements for unselected ...

Read More

How to use an ES6 import in Node.js?

Moksh Gupta
Moksh Gupta
Updated on 12-Nov-2024 279 Views

Since ES6, JavaScript has a standardized way in terms of using the import statement in your project to include modules. Originally Node.js was using require() to import a module but with the update it is also imported ES6 import. This article will explain how to use ES6 import in Node.js, why it is important, and what constitutes good practice. Why Use ES6 Imports in Node.js? The following are some key reasons why you should use ES6 imports in Node.js − Modern Syntax: import is even better than require() to import modules because it is clean ...

Read More

Difference between Node require and ES6 import and export

Moksh Gupta
Moksh Gupta
Updated on 12-Nov-2024 248 Views

When working with JavaScript, especially in a Node.js or modern JavaScript environment, you often come across two popular module systems: use require which comes from the CommonJS and import and export keywords which came with ES6. They are both used with the same goal of modularizing your code but they differ as to how and what you use or do with them. Now let us discuss these differences in a greater detail. What is Node.js require? The require is the module-loading mechanism in CommonJS, the default module system for Node.js. It allows you to include modules, JSON files, or local ...

Read More

Number of pairs with maximum sum in C++

Aishwarya Naglot
Aishwarya Naglot
Updated on 12-Nov-2024 570 Views

We need to find a number of all the pairs that has the maximum sum, In a given array of integers. A pair consists of two numbers, and the sum is simply the result of adding them. We will see multiple solutions to this problem, starting with a naive (brute force) approach and moving to more optimized solutions. Below is the list of approaches we will cover in this article: Brute Force approach using two loops Max Sum Pairs with Sorting ...

Read More

How to Create and Run Node.js Project in VS Code Editor?

Moksh Gupta
Moksh Gupta
Updated on 12-Nov-2024 1K+ Views

Node.js is one of the most vital tools in the hands of modern developers to create the necessary server applications. In this article, you will learn about how to create and run a Node.js project in one of the best, and most used, editors named Visual Studio Code (VS Code). What is Node.js? Node.js is an open-source cross-platform runtime environment for executing JavaScript code on the server side. It will be beneficial for creating web servers, APIs, and applications that run in real-time. Key Features of Node.js The following are the key features of Node.js − ...

Read More

Create a Date object using the Calendar class in Java

Aishwarya Naglot
Aishwarya Naglot
Updated on 11-Nov-2024 2K+ Views

In Java, we can create a date object using the calendar class, which gives us more control on date and time. We will discuss the process in this article. What is the Calendar class? In order to understand the usage of we must know what is the calendar class. The Calendar class allows us to work with date and time more easily than Date class. like, we can set specific parts of the date, like month, year, and day. For using Calendar class, import the following package. import java.util.Calendar; Now, let us create an object of Calendar class. Calendar ...

Read More

Java program to demonstrate the call by value

Pranay Arora
Pranay Arora
Updated on 11-Nov-2024 949 Views

In programming, functions often require parameters to be passed to them to be called or invoked. There are 2 ways to call functions, the 1st being call by Reference and the 2nd being call by value. In this article, we are going to demonstrate call by value in Java. Call by value is a method in which the value of the argument is passed as a copy to the function, hence any change made to this argument inside the function will not affect the original value of the argument beyond the scope of this function. To help understand these concepts ...

Read More

How to add multiple font files for the same font using CSS?

Diksha Patro
Diksha Patro
Updated on 11-Nov-2024 13K+ Views

To add multiple font files for the same font using CSS, is essential to display your webpage correctly across all devices. For this purpose it is important to include multiple font files for the same font. In this article, we will be understanding two different approaches to add multiple font files for the same font using CSS. Approaches to Add Multiple Font Files for Same Font Here is a list of approaches to add multiple font files for the same font using CSS which we will be discussing in this article with stepwise explaination and complete example codes. ...

Read More
Showing 2331–2340 of 61,248 articles
« Prev 1 232 233 234 235 236 6125 Next »
Advertisements