Tag: javascript

  • Data Type Conversion In JavaScript

    Often in programming we need to perform some kind of type conversion, and in this lesson you will learn how to convert one data type to another in JavaScript.

  • JavaScript Scope For Beginners

    Scope is a core programming concept that can often confuse people when attempting to learn JavaScript for the first time. In this lesson we will discover why scope is important, as well as break down the three main types of scope.

  • JavaScript Modules Explained

    If you’ve worked with Node.js or React for any amount of time, you will have come across JavaScript modules. You may also have noticed that there are different ways to create modular code depending on the age or requirements of your codebase. In this article we'll learn what they are and how they work.

  • Writing Functions In JavaScript

    Functions are a foundational concept in programming, and an essential part of writing code in JavaScript. In this lesson you will learn about the importance of functions, how to write them, and how they can be used to create programs.

  • Sum The Differences Between Array Elements

    In this post we’re going to take on a coding challenge where the objective is to create a function that accepts an array of integers and sums the difference between the consecutive pairs in the array.

  • Creating Loops In JavaScript

    In this lesson you will discover everything you need to know about loops as a beginner, including different kinds of loops with examples. When it comes to learning programming, the topic of loops are where things start to get really exciting!

  • Writing Conditional Statements In JavaScript

    Conditional statements are an essential building block of any program. In this lesson we will break down everything you need to know about conditionals, including the different kinds and how to use them.

  • Value Equality In JavaScript

    Value equality can be confusing when you are first learning JavaScript. In fact, it can often continue to surprise experienced developers well into their career.

  • How To Implement Dark Mode In Next.js With Tailwind CSS

    In this guide I’ll break down how to create a dark mode toggle in your Next.js app with the help of Tailwind CSS and next-themes.

  • How To Use Operators In JavaScript

    In this lesson you will learn all about JavaScript operators, and how they can help you to carry out actions and make decisions in your code. In JavaScript an operator is a special symbol that is used to perform operations on values.

  • Generate Twitter Cards From A Next.js Website

    Have a website or app built with Next.js? Want to be able to share your content on Twitter in an eye-catching way? Find out how to use Twitter Cards in Next.js.

  • Array Properties And Methods In JavaScript

    Arrays are a fundamental part of JavaScript and programming in general. They allow you to store multiple values in a single variable, making it easier to manipulate and organise data.

  • String Properties And Methods In JavaScript

    Strings are an integral part of programming, and are used everywhere from displaying messages to parsing text data. JavaScript provides us with a variety of built-in tools that we can use to manipulate strings as part of creating programs.

  • Data Types In JavaScript

    JavaScript has a range of data types that we can use in our programs, and we will break down the most essential ones in this lesson. Data types specify the kinds of data that can be stored and manipulated in a program.

  • Variables In JavaScript

    In this lesson you will learn about one of the most foundational concepts in the JavaScript language (and programming in general): variables. When writing programs we need to handle data, and variables are used to store different data temporarily while we carry out some kind of action upon it.

  • AJAX Part 4: Loading Data From An External API

    In the previous article we discovered how to load JSON data from a local server using AJAX. In this instalment, we'll explore a more practical example where we'll fetch JSON data from an external API.

  • AJAX Part 3: Loading JSON Data

    In the previous article we discovered how to load text data from a local server using AJAX. In this guide, we'll take a similar approach, this time loading JSON.

  • AJAX Part 2: Loading Plain Text Data

    Now that we've discussed what AJAX is and why it came to be, let's see it in action. As AJAX enables communication between a client and a server, we need to spin up a local server in order to make requests.

  • AJAX Part 1: What Is AJAX?

    This article is the first in a series all about AJAX. In this first guide we'll explore what AJAX is, why it's important, and how you can apply it in your own applications.

  • JavaScript Higher-Order Array Methods

    A number of higher-order array methods were introduced into the JavaScript language with the release of ES6. These methods have helped to shape the way that we work with frameworks like React, making it much easier to manipulate data in arrays.

  • Writing Comments In JavaScript

    In this short lesson you will learn about adding code comments in JavaScript. By the end you will understand how comments can help to improve your experience when writing code, as well as the experience of others reading it.

  • Writing Statements In JavaScript

    In this short lesson you will learn about statements in JavaScript, the syntax, and how to write them for yourself. Within a program, a script consists of a series of individual instructions that the computer can follow. Each of these instructions is known as a statement.

  • Values And Types In JavaScript

    Before delving into the depths of data in JavaScript, it’s important to note that all programming languages have built-in data structures. However, these data structures often vary in each language. In this post I’ll outline the properties of the built-in data structures in JavaScript.

  • JavaScript Scope Demystified

    Scope is a core programming concept that can really trip you up when you’re first trying to learn JavaScript. Let's take a look at how it works, step by step.