Front End Technology Articles

Page 118 of 652

Functional Programming with JavaScript Libraries: Ramda, Lodash, and Immutable.js

Mukul Latiyan
Mukul Latiyan
Updated on 25-Jul-2023 336 Views

Functional programming is a popular paradigm in JavaScript development, emphasising immutability, pure functions, and higher-order functions. It promotes writing clean, concise, and maintainable code. To facilitate advanced functional programming techniques, several JavaScript libraries have emerged, providing powerful tools and utilities. In this article, we will explore three such libraries: Ramda, Lodash, and Immutable.js. We will dive into code examples, explain their features, and showcase the benefits they bring to functional programming in JavaScript. Ramda: Functional Programming made Easy Ramda is a powerful library that promotes functional programming in JavaScript. It focuses on immutability and provides a wide range of functions ...

Read More

Exploring the Intersection of JavaScript and Blockchain Technology

Mukul Latiyan
Mukul Latiyan
Updated on 25-Jul-2023 249 Views

In recent years, blockchain technology has gained significant attention and revolutionised various industries. At its core, a blockchain is a decentralized, immutable, and transparent ledger that records transactions across multiple computers. One of the programming languages that has become popular for developing blockchain applications is JavaScript. In this article, we will delve into the intersection of JavaScript and blockchain technology, exploring how JavaScript can be used to interact with and develop applications on the blockchain. JavaScript and Blockchain: A Powerful Combination JavaScript, known for its versatility and wide adoption, has become a preferred language for building web applications. Its ability ...

Read More

Exploring JavaScript Game Engines: Impact.js, Babylon.js, and Cocos2d-js

Mukul Latiyan
Mukul Latiyan
Updated on 25-Jul-2023 244 Views

JavaScript has become a popular choice for game development due to its versatility and wide adoption across different platforms. To facilitate game development, several JavaScript game engines have emerged, each with its own set of features and capabilities. In this article, we will explore three popular JavaScript game engines: Impact.js, Babylon.js, and Cocos2d-js. We will delve into the theory behind these engines, provide code examples with outputs where possible, and conclude with a comparison of their strengths and weaknesses. Impact.js Impact.js is a robust and well-established JavaScript game engine that focuses on 2D game development. It provides a comprehensive set ...

Read More

Error Monitoring and Logging Techniques in JavaScript

Mukul Latiyan
Mukul Latiyan
Updated on 25-Jul-2023 407 Views

JavaScript error monitoring and logging are crucial for maintaining the stability and performance of your applications. In this article, we will explore advanced techniques that can help you effectively monitor and log errors in your JavaScript code. We'll cover global error handlers, try/catch blocks, stack traces, logging libraries, custom error classes, error reporting and notifications, and error tracking in production. Global Error Handlers Global error handlers allow you to catch and handle errors that occur during the runtime of your JavaScript application. By utilising window.onerror and window.onunhandledrejection, you can log or report errors and exceptions. Example window.onerror = function(message, url, ...

Read More

Data Manipulation and Transformation Techniques in JavaScript

Mukul Latiyan
Mukul Latiyan
Updated on 25-Jul-2023 2K+ Views

In the world of web development, JavaScript is a versatile and powerful language that plays a crucial role in creating dynamic and interactive web applications. One of the key aspects of JavaScript is its ability to manipulate and transform data efficiently. In this article, we will explore advanced techniques for data manipulation and transformation using JavaScript. We will dive into various scenarios, providing code examples, explanations, and outputs to help you grasp these concepts effectively. Working with Arrays Arrays are fundamental data structures in JavaScript, and they offer several powerful methods to manipulate and transform data. Let's explore some ...

Read More

Building Voice-controlled Applications with JavaScript and Speech Recognition APIs

Mukul Latiyan
Mukul Latiyan
Updated on 25-Jul-2023 862 Views

Voice-controlled applications have become increasingly popular in recent years, allowing users to interact with technology through speech rather than traditional input methods. JavaScript, being one of the most widely used programming languages for web development, provides a powerful platform for building such applications. In this article, we will explore how to utilise JavaScript and Speech Recognition APIs to create voice-controlled applications. We will dive into the process of setting up speech recognition, capturing and processing user speech, and implementing voice commands in your applications. Setting Up Speech Recognition Before we start building our voice-controlled application, we need to set up ...

Read More

Building Robot Arms with JavaScript and Robotics Frameworks

Mukul Latiyan
Mukul Latiyan
Updated on 25-Jul-2023 592 Views

JavaScript, the popular programming language known for its versatility and ease of use in web development, has expanded its reach beyond the realm of browsers. With the rise of the Internet of Things (IoT) and the increasing demand for robotics applications, JavaScript has found its way into the world of robotics. In this article, we will explore how JavaScript can be used to build and control robot arms, leveraging the power of robotics frameworks. Understanding Robotics Frameworks Before diving into the practical implementation, let's take a moment to understand what robotics frameworks are and how they can benefit us in ...

Read More

Building Real-Time Collaborative Editing Applications with JavaScript and Operational Transformation

Mukul Latiyan
Mukul Latiyan
Updated on 25-Jul-2023 967 Views

Real-time collaborative editing applications have become increasingly popular in today's digital world. These applications allow multiple users to simultaneously edit and collaborate on shared documents or projects. One of the key challenges in building such applications is handling concurrent edits made by different users. JavaScript, being a widely used programming language for web development, provides robust tools and frameworks to implement real-time collaboration features. In this article, we will explore how to build real-time collaborative editing applications with JavaScript using the concept of operational transformation. We will provide code examples, explanations, and a final conclusion to summarise the key ...

Read More

Building Progressive Web Games with JavaScript and HTML5 Canvas

Mukul Latiyan
Mukul Latiyan
Updated on 25-Jul-2023 1K+ Views

In recent years, the web platform has evolved significantly, enabling developers to create more powerful and interactive applications. With the introduction of HTML5 and JavaScript, developers now have the tools to build not just websites but also games that can run directly in the browser. In this article, we will explore the process of building a Progressive Web Game using JavaScript and HTML5 Canvas, with a practical example of a "Brick Breaker" game. What are Progressive Web Games? Progressive Web Games are web-based games that leverage modern web technologies to provide a rich and immersive gaming experience. They are ...

Read More

Total area of two overlapping rectangles

Divya Sahni
Divya Sahni
Updated on 25-Jul-2023 1K+ 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
Showing 1171–1180 of 6,517 articles
« Prev 1 116 117 118 119 120 652 Next »
Advertisements