Variables

The code snippet below shows how to declare variables in JavaScript and how to assign values to a variable. Pay attention to the //comment which explain the different ways of …

Hello World

The code below can be copied to a HTML file. The HTML code contains JavaScript code which will basically display a “Hello world” message in the browser window. The code …

Blinking LED Arduino project

This video tutorial has been designed for those just starting out with Arduino. For this beginner project you will need an Arduino Uno board (or compatible board), an LED of …

Switch Statements in JavaScript

Switch statements are used to run different blocks of code based on different conditions. They are similar to ‘If’ statements but can be a little neater when working with many conditions. This …

‘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 …