Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles on Trending Technologies
Technical articles with clear explanations and examples
List of Best JavaScript Frameworks?
JavaScript frameworks simplify web development by providing pre-built components, architecture patterns, and tooling. Here's a comprehensive list of the most popular and widely-used JavaScript frameworks for modern web development. Frontend JavaScript Frameworks React React is a component-based JavaScript library developed by Facebook for building user interfaces. It uses a virtual DOM for efficient rendering and supports JSX syntax for writing HTML-like code in JavaScript. // Simple React component example function Welcome(props) { return Hello, {props.name}!; } // Usage const element = ; Vue.js Vue.js is a progressive JavaScript framework ...
Read MoreList of Best JavaScript libraries?
JavaScript libraries provide pre-written code to simplify common programming tasks, enhance functionality, and accelerate development. Here are some of the most popular and widely-used JavaScript libraries across different categories. Frontend UI Libraries jQuery jQuery is a fast and lightweight JavaScript library created by John Resig in 2006 with the motto "Write less, do more". It simplifies HTML document traversing, event handling, animations, and Ajax interactions for rapid web development. // jQuery example - DOM manipulation $(document).ready(function() { ...
Read MoreHow JavaScript was created?
NCSA's Mosaic was the first popular browser, which released in 1993. After a year, in 1994, Netscape was founded, which came with the web browser Netscape Navigator. It gained a lot of popularity in the 1990s. Many Mosaic authors worked for Navigator. Considering the need for users and market trends, Netscape realized that the Web should be more dynamic. They needed a scripting language that could make web pages interactive and responsive to user actions. The Birth of JavaScript In 1995, Netscape hired Brendan Eich to implement Scheme in the browser. However, Netscape collaborated with Sun Microsystems ...
Read MoreWhat is ECMAScript and how it is related to JavaScript?
ECMAScript is the standardized specification that defines the core features and syntax of JavaScript. Understanding this relationship helps clarify how JavaScript evolved and continues to develop as a programming language. What is ECMAScript? ECMAScript (ES) is the official standard maintained by Ecma International that defines the syntax, types, statements, keywords, and objects that JavaScript implementations must follow. The ECMA-262 specification defines the standard version of the core JavaScript language. History and Relationship JavaScript was originally created by Brendan Eich at Netscape in 1995. Initially called LiveScript, it was renamed to JavaScript to capitalize on Java's popularity. ...
Read MoreHow to check if a string has a certain piece of text in JavaScript?
JavaScript provides several methods to check if a string contains a specific piece of text. While the older search() method works, modern approaches like includes() are more intuitive and widely used. Using includes() Method (Recommended) The includes() method returns true if the string contains the specified text, false otherwise. let str = "Tutorialspoint: Free Video Tutorials"; let searchText = "Free Video"; if (str.includes(searchText)) { document.write("Contains"); } else { document.write("Does not contain"); } Contains Using search() Method The search() method returns the ...
Read MoreHow do I remove a particular element from an array in JavaScript
In JavaScript, removing a particular element from an array refers to the process of deleting or filtering out a specific element so that it no longer exists within that array. Arrays are the most commonly used data structures in JavaScript, allowing developers to store and manipulate collections of items. There are several methods to remove elements from arrays, each with different behaviors and use cases. Method 1: Using splice() Method The splice() method modifies the original array by removing elements at a specified index. Syntax array.splice(index, deleteCount[, element1[, element2[, ...]]]) Parameters ...
Read MoreHow to redirect to another webpage using JavaScript?
The window.location object contains the current location or URL information. We can redirect users to another webpage using the properties of this object. The window prefix is optional and can be omitted. JavaScript provides three main methods to redirect users to another webpage: location.href - Sets or returns the complete URL of the current page location.replace() - Replaces the current document with a new one (no back button history) location.assign() - Loads a new document (keeps back button history) Syntax location.href = "url"; location.replace("url"); ...
Read MoreHow can I remove all child elements of a DOM node in JavaScript?
When building web applications, you often need to clear dynamic content like task lists, shopping carts, or search results. JavaScript provides several methods to remove all child elements from a DOM node efficiently. Here are the main approaches to remove all child elements: Using the removeChild() method with iteration Setting innerHTML to an empty string Using jQuery's empty() method Using the modern replaceChildren() method Using removeChild() Method with Iteration This method iterates through all child nodes and removes them one by one using removeChild(). It's reliable and works across all browsers. Syntax ...
Read MoreHow to determine if JavaScript object is an event?
In JavaScript, distinguishing between regular objects and event objects is important when handling user interactions and DOM events. An event object contains information about an event that occurred, such as mouse clicks or keyboard presses, while regular objects store data as properties and methods. JavaScript events are actions that happen in the browser, like clicking a button or loading a page. When these events occur, JavaScript creates event objects that contain details about what happened. Let's explore two reliable methods to check if an object is an event. Using the target Property Event objects have a target ...
Read MoreHow to delete a row from a table using jQuery?
In this article, we will learn to delete a row from a table using jQuery. jQuery, a fast and lightweight JavaScript library, makes DOM manipulation simple. Deleting a row from a table dynamically is a common requirement in web development, especially when working with forms or data tables. Approach to Delete Rows The approach involves attaching a click event listener to a delete button within the row. When the button is clicked, the corresponding row is removed from the table using jQuery methods. Key jQuery Methods Used The $(document).on('click', 'button.deletebtn', function ...
Read More