10 coding learning exercises focused on Functional Programming in JavaScript

10 coding learning exercises focused on Functional Programming in JavaScript, covering Pure Functions and Immutability, Map, Filter, Reduce, and other Array Methods, Declarative vs. Imperative Programming, Lazy Evaluation and Infinite Sequences, and Monads, Functors, and Other FP Concepts Exercise 1: Creating Pure Functions Objective: Understand the concept of pure functions in JavaScript. Task: Write a … Read more

Implementing a Debounce Function in JavaScript

In JavaScript, certain events like window resizing or input changes can trigger functions multiple times in rapid succession. This can lead to performance issues, especially when these functions perform resource-intensive tasks. The debounce technique is a common solution to this problem, ensuring that a function is only executed after a specified period of inactivity. In … Read more

Implementing a Custom Map Function in JavaScript

In JavaScript, the Array.prototype.map function is a powerful method that allows you to transform the elements of an array by applying a callback function to each element. It returns a new array containing the results of calling the callback function on each element. But what if you wanted to implement your own version of map? … Read more

Creating a Simple Implementation of a Promise with .then Chaining

In JavaScript, Promises are a powerful way to handle asynchronous operations. They provide a mechanism to execute code after an asynchronous task completes, with support for chaining multiple tasks using the .then method. In this blog post, we’ll explore how to implement a basic version of a Promise from scratch, including support for .then, .catch, … Read more

Deep Cloning an Object in JavaScript

When working with JavaScript objects, you may encounter situations where you need to create an exact copy of an object. However, simply copying an object with assignment (=) or even using methods like Object.assign() creates a shallow copy. This means that nested objects or arrays within the original object will still reference the same memory … Read more

Automate Removing Whitespace from Every Line in Google Docs with Google Apps Script

If you frequently work with Google Docs, you might encounter documents with inconsistent whitespace at the beginning or end of lines. Manually removing these spaces can be tedious and time-consuming. Fortunately, Google Apps Script provides a way to automate this task, ensuring your document is clean and well-formatted. In this blog post, we’ll walk through … Read more

Automate Formatting Questions with Google Apps Script

If you regularly work with Google Docs, you might find yourself manually formatting text to improve readability. For instance, you might want to highlight questions in your document by converting them into headings. With Google Apps Script, you can automate this process, saving time and effort. In this blog post, we’ll walk through a script … Read more

Advanced JavaScript: 10 Challenging Coding Exercises

As you continue your journey in mastering JavaScript, tackling more complex and challenging exercises can significantly enhance your coding skills. Here are 10 advanced JavaScript exercises designed to push your understanding and help you become a more proficient developer. Each exercise includes complete code and explanations. Exercise 1: Implementing a Debounce Function Objective: Create a … Read more

Creating a Table of Contents in Google Docs Using Google Apps Script

Google Apps Script is a powerful tool that allows you to automate tasks and extend the functionality of Google Apps. In this blog post, we will explore how to create a Table of Contents (TOC) in a Google Docs document using Google Apps Script. This is particularly useful if you have a lengthy document with … Read more

Advanced Email Template Interaction with Google Apps Script

Creating dynamic and interactive email templates with Google Apps Script can significantly enhance your customer interaction and streamline your workflow. In this blog post, we’ll walk you through how to create email templates with buttons that interact with your Google Sheet or send customized responses directly to your customers. Step 1: Set Up Your Google … Read more