April 14, 2024 in Learn
JavaScript Fetch API: Retrieving Data from Servers
If you’re an aspiring JavaScript developer looking to harness the power of modern web programming, understanding the Fetch API is a crucial part of building robust, data-rich applications. In this post, I’ll introduce you to how to use the JavaScript…
March 12, 2024 in Learn
Dynamically Change Values in JavaScript
Things on the internet are always changing. Sometimes websites themselves change. Sometimes things on a website dynamically change while you’re interacting with it. This is where my interest peaks. That’s why I want to discuss how to dynamically change values…
February 8, 2023 in Learn
How to Manipulate Classes Using the JavaScript classList API
Something that comes up often when building front-end web applications is the need to change the classes applied to an element. For some time elements have had a className attribute which allows you to retrieve a string containing the class…
December 15, 2022 in Learn
What is JavaScript?
This blog post was written by chatGPT. The Treehouse team is experimenting with this exciting new service and so thought we would ask it a few questions and see how it compares to similar content! If you’re wondering what is…
December 13, 2022 in Learn
JavaScript Array Methods: reduce()
The reduce() method in JavaScript is used to apply a function to each element in an array, with the purpose of reducing the array to a single value. This method is often used for tasks such as summing the elements…
December 13, 2022 in Learn
JavaScript Array Methods: includes()
Ever wondered if an array included a specific value? There is an easy way to check this by using a JavaScript array method known as includes(). Follow along as I go over this method and show you how to use…
December 9, 2022 in Learn
JavaScript Array Methods: sort()
Ever found yourself needing to sort an array? This could be strings being sorted in alphabetical order or even a players’ scores from highest to lowest. Whichever the case may be, the JavaScript sort() method can make this task easy….
December 6, 2022 in Learn
JavaScript Array Methods: find()
Ever needed to find or locate a specific array item? Luckily for us, we have a JavaScript method that can handle that task with ease. In this quick guide, I’ll go over the find() JavaScript array method. If you’re ready,…
December 2, 2022 in Learn
Java vs. JavaScript: A Complete Comparison
The programming languages Java and JavaScript may sound similar, but they’re not actually related to each other at all. In fact, it’s often said that the name ‘JavaScript’ was a marketing tactic to take advantage of Java’s popularity. Although both…
November 28, 2022 in Learn
PHP vs. JavaScript: Comparisons and Applications
PHP and JavaScript are two very popular programming languages and there are many web apps that use them both at the same time. The main difference is that, while PHP is only for back-end development, JavaScript is used for front-…
November 25, 2022 in Learn
How to Store Data in LocalStorage in JavaScript
The LocalStorage API gives front-end web developers access to a simple key-value datastore that can be used to save data on a user’s computer. Saving data on the client side can help speed up the performance of your web applications…
November 21, 2022 in Learn
JavaScript Array Methods: filter()
Ever needed to filter array elements? Luckily for you there is an easy way to do this in javascript by using the filter() array method. Let’s dive into how we can use this method and what it can do. Consider…