Advanced JavaScript Exercises Part 3

Advanced JavaScript Exercises (Part 3) Lesson Objective: The goal of this lesson is to further challenge learners by focusing solely on JavaScript without relying on any external libraries or frameworks. These exercises dive deeper into fundamental concepts like DOM manipulation, event handling, custom data structures, advanced functions, and more. Learning Outcomes: Exercise 1: Custom Deep … Read more

Advanced JavaScript Exercises Part 4

Advanced JavaScript Exercises (Part 4) Lesson Objective: Continue reinforcing core JavaScript concepts by working with more advanced topics like recursion, regular expressions, event delegation, dynamic form creation, custom data structures, and DOM manipulation. Learners will gain deeper insights into how JavaScript works by creating custom solutions to real-world problems without relying on any external libraries … Read more

Advanced JavaScript Exercises Part 5

Lesson Objective: This lesson focuses on pushing the boundaries of JavaScript by exploring complex topics such as advanced DOM manipulation, algorithms, timing events, browser APIs, and more. The goal is to help learners solidify their understanding of core JavaScript concepts while solving practical coding challenges. Learning Outcomes: Exercise 1: Delayed Execution using setTimeout() Learning Objective: … Read more

Advanced JavaScript Exercises

Advanced JavaScript Exercises (Part 6) Lesson Objective: These exercises dive deeper into more advanced JavaScript concepts and coding challenges without the use of external libraries or frameworks. The goal is to continue building proficiency in JavaScript with topics such as recursion, browser storage, animations, algorithms, and custom form validation. Learning Outcomes: Exercise 1: Recursively Flatten … Read more

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