Category: Advanced Chapters
-
Kaboom.js
Kaboom.js makes it easy to create JavaScript games. You can add physics, detect collisions and make sprites in addition to controlling different scenes. By using Kaboom.js, you can focus on making an engaging and creative game instead of writing complex code. Think about adding other features like backgrounds, power-ups or scoring to further enhance your game!…
-
Immutability
Immutable means that something that cannot be changed. In programming, immutable means a value that cannot be changed once set. Most programs require the generation, modification, and deletion of data. So, why would anyone want to deal with immutable data? In this tutorial, we will look at the immutability of primitives, arrays, and objects using…
-
Function Composition
Function composition is a powerful functional programming approach that allows programmers to combine numerous functions into a single function. This compositional method enhances readability, modularity and code reuse. The compose function is important for JavaScript’s ability to provide function composition. What is Function Composition? The method of combining several functions to create a new function…
-
Execution Context
We will learn about the JavaScript execution context in this chapter, where we will also cover its types, definition, execution stack, creation process, and overall execution phase. We will go over each topic individually. First, let’s get started with the introduction. What is Execution Context? The execution context is a term that describes the internal…
-
Engine and Runtime
A JavaScript engine is a computer software that executes JavaScript code. It is responsible for translating human-readable JavaScript code into instructions that the hardware of the computer can understand. When JavaScript code is executed in a browser, it does not make direct contact with your computer’s hardware. Rather, it communicates with the JavaScript engine, which…
-
Design Patterns
In JavaScript, design patterns are classes and communicating objects that are designed to deal with a general design problem in a specific setting. Generic, reusable solutions to typical issues that come up throughout software design and development are known as software design patterns. They give developers a forum to discuss successful design concepts and function…
-
Dead Zone
What is a Dead Zone? A dead zone in JavaScript is a point during code execution where a variable exists but cannot be accessed. This is because of the behavior of variable hoisting, a mechanism that moves variable declarations to the top of their scope during compilation while leaving assignments intact. Dead Zones (DZs) are…
-
Data Analysis
Data analysis is essential for modern research and business. It offers information to support innovation, strategy development, and decision-making. Computer languages like Python and R which are known for their vast libraries and statistical capabilities, have historically been linked to data analysis. However JavaScript is best known for web development and is gradually gaining popularity…
-
CORS Handling
Cross-Origin Resource Sharing (CORS) is a browser-level security feature that, by default, blocks queries across different origins, like a front-end client querying a back-end server hosted on a separate origin or domain. We can use a variety of strategies to avoid or enable cross-origin queries. In this chapter, we will use code examples to demonstrate…
-
Code Testing with Jest
You can increase your application’s reliability and maintainability by testing your code to find errors earlier using Jest. Jest is a popular choice for JavaScript testing, particularly for applications made using Node.js, React, Angular, and Vue.js. Let us look at Jest’s features and how to use them. What is Jest? The Jest testing framework, created…