‘If’ Statements in JavaScript

This tutorial explains how to use ‘if’ statements for conditional programming in JavaScript. An ‘if’ statement can be used to make decisions based on whether a condition evaluates to true or …

Arrays in JavaScript

This tutorial explains how to create an array in JavaScript. An array is a data structure (a way of storing and organising data) which, unlike variables, can store more than one value …

Variable scope in JavaScript

Variable scope refers to the context that a variable is defined in. JavaScript has two variable scopes: global and local. A global variable is a variable which is declared outside a function and its value …

JavaScript and HTML Events

This video tutorial explains how to run JavaScript code when events occurr on a webpage. Events include clicking an HTML element (such as a button, an image, or some text) …

Working with Strings in JavaScript

This video tutorial explains some different tasks you can perform with strings including: how to concatenate (join) strings together how to convert from integer to string ho to change text to uppercase or lowercase letters …

Arithmetic in JavaScript

In this tutorial, you will learn how to use a range of arithmetic operators in JavaScript to assign values, modify variables and perform mathematical calculations. If you have created your own variables …