Found 8895 Articles for Front End Technology

Advanced JavaScript Tooling: Webpack, Babel, and ESLint

Mukul Latiyan
Updated on 24-Jul-2023 14:41:53

216 Views

In today's rapidly evolving web development landscape, JavaScript has emerged as the backbone for building interactive and dynamic web applications. As JavaScript applications grow in complexity, developers face the challenge of managing and optimising their code effectively. This is where advanced JavaScript tooling comes into play. In this article, we will explore three indispensable tools for modern JavaScript development: Webpack, Babel, and ESLint. These tools work seamlessly together to enhance code quality, optimise performance, and enable the use of cutting-edge JavaScript features across different environments. Webpack: Bundling Your Code Webpack serves as a powerful module bundler that allows developers to ... Read More

Advanced JavaScript Patterns: Singleton, Decorator, and Proxy

Mukul Latiyan
Updated on 24-Jul-2023 14:40:28

118 Views

JavaScript is a versatile programming language that allows developers to create dynamic and interactive web applications. With its vast array of features and flexibility, JavaScript enables the implementation of various design patterns to solve complex problems efficiently. In this article, we will explore three advanced JavaScript patterns: Singleton, Decorator, and Proxy. These patterns provide elegant solutions for managing object creation, adding functionality dynamically, and controlling access to objects. Singleton Pattern The Singleton pattern ensures that a class has only one instance and provides a global point of access to it. This pattern is useful when we want to limit the ... Read More

How to make Vertical selects using jQuery Mobile?

Way2Class
Updated on 24-Jul-2023 15:56:07

66 Views

Jquery is a popular JavaScript library that is very useful to combine the fluent working of HTML and JavaScript. Jquery provides more features and efficiency to webpages, and this could be beneficial to build dynamic content for making required and useful website. Jquery comes integrated with some major systems like JS questions on StackOverflow and WordPress. Users of Jquery library get advantages when they use various JS functions. Jquery became famous among users because it provides short and clean syntax and in Jquery you can save a lot on development time. One of the main function of Jquery is its ... Read More

Advanced JavaScript Animation Techniques using CSS and JavaScript Libraries

Mukul Latiyan
Updated on 24-Jul-2023 14:38:32

235 Views

As web development continues to evolve, creating engaging and interactive user experiences has become an essential part of modern web applications. From subtle micro-interactions to complex visual effects, animations play a crucial role in capturing the attention of users and conveying information in a dynamic and visually appealing manner. JavaScript, in combination with CSS and various JavaScript libraries, offers powerful techniques for creating advanced animations on the web. In this article, we will delve into the world of advanced JavaScript animation techniques, exploring how CSS transitions and JavaScript libraries can be harnessed to bring your web animations to life. ... Read More

Total area of two overlapping rectangles

Divya Sahni
Updated on 25-Jul-2023 12:50:15

715 Views

An overlapping area is an area that is shared by two objects. In the case of rectangles, it is the area of the rectangles that belong to both rectangles. In order to find the total areas of two overlapping rectangles, first er need to add the area of both rectangles respectively but in this total, the overlapping area is counted twice. Thus we need to subtract the overlapping area too. Problem Statement Given the bottom left and top right vertices of two rectangles. Find the total area covered by the two rectangles. Sample Example 1 Input bl_x1 = 0 bl_y1 ... Read More

Advanced Functional Reactive Programming (FRP) with JavaScript and RxJS

Mukul Latiyan
Updated on 24-Jul-2023 14:35:56

346 Views

Functional Reactive Programming (FRP) is a powerful paradigm that combines functional programming concepts with reactive programming. By leveraging FRP, developers can build highly responsive and scalable applications by modeling the flow of data and events as streams of values. JavaScript, being a widely used language for web development, can benefit from FRP through libraries and frameworks. One popular library is RxJS (Reactive Extensions for JavaScript), which provides a rich set of tools for implementing FRP in JavaScript. In this article, we will explore advanced techniques of Functional Reactive Programming using JavaScript and RxJS. Understanding FRP and Reactive Programming Before diving ... Read More

How to Move Image in HTML?

Way2Class
Updated on 24-Jul-2023 15:48:43

13K+ Views

An image can be included in a web page using the HTML img> tag. The tag has no ending tag, is empty, and simply includes attributes. A web page can have scrollable text or images from left to right or vice versa, or from top to bottom or vice versa, by using the HTML container tag "marquee" . The new HTML version, HTML 5.1, however, deprecates the use of this tag. We can also use simple html properties for the same. We will look on more ways to move the image using the CSS properties as well as various ... Read More

Advanced DOM Manipulation Techniques with JavaScript

Mukul Latiyan
Updated on 24-Jul-2023 15:48:33

586 Views

In the world of web development, dynamic and interactive web pages are essential to engage users and provide a seamless browsing experience. JavaScript, as a powerful scripting language, plays a crucial role in manipulating the Document Object Model (DOM) to create, modify, and delete HTML elements dynamically. In this article, we will explore advanced DOM manipulation techniques using JavaScript, enabling you to take your web development skills to the next level. We will cover practical examples and provide ample theory to help you understand the concepts thoroughly. Understanding the DOM Before diving into advanced techniques, let's briefly revisit the ... Read More

Check if the given two numbers are friendly pairs or not

Divya Sahni
Updated on 25-Jul-2023 12:25:24

482 Views

Friendly Numbers − According to number theory, friendly numbers are two or more numbers having the same abundancy index. Abundancy Index − Abundancy index of a natural number can be defined as the ratio between the sum of all the divisors of the natural number and the natural number itself. The abundancy of a number n can be expressed as $\mathrm{\frac{\sigma(n)}{n}}$ where $\mathrm{\sigma(n)}$ denotes the divisor function equal to all the divisors of n. For example, the abundancy index of the natural number 30 is, $$\mathrm{\frac{\sigma(30)}{30}=\frac{1+2+3+5+6+10+15+30}{30}=\frac{72}{30}=\frac{12}{5}}$$ A number n is said to be a ‘friendly number’ if there exists a ... Read More

Max occurring divisor in an interval

Divya Sahni
Updated on 25-Jul-2023 12:06:49

114 Views

Let x and y be two numbers. In this case, x is said to be a divisor of y if when y is divided by x it returns zero remainder. The maximum occurring divisor in an interval is the number that is a divisor of the maximum number of elements of that interval. Problem Statement Given an interval [a, b]. Find the maximum occurring divisor in the range including both a and b, except ‘1’. In case all divisors have equal occurrence, return 1. Sample Example 1 Input [2, 5] Output 2 Explanation − Divisors of 2 = ... Read More

Advertisements