Data Types

This source code shows how create and use variables of different data types. Strings are text (letters, numbers and characters), integers are regular whole numbers (treated as numbers), and floats …

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 …