Latest Tutorials

JavaScript variables

Variables in JavaScript are made of the operator var (which is a

Data types and the typeof operator

In ECMAScript there are five simple data types (also called primitive types) and one complex datatype. The simple data types are:

The undefined data type

The undefined type is generally assigned to those variables that are declared but not ye...

The null data type in JavaScript

The null type is an empty object pointer and therefore the typeof

The Boolean data type in JavaScript

The Boolean type may have two literal values, true or false. These values are different from numerical values 1...

The number data type in JavaScript

The number type may have a couple of different literal values. It may be expressed as an integer or a floating point. The most common format is a literal...

The string data type in JavaScript

The string type is considered to be any sequence of 16-bit Unicode...

The object data type in JavaScript

The object type is a complex but very important data type. Objects may be any specific or non-specific group of data and functionality. They are the core of JavaScript

Unary operators (++, --, +variable, -variable)

The simplest operators in JavaScript are unary operators. The unary operators are applied to only one value (thus the name "unary"). These opera...

Bitwise operators (~, |, |, ^, <<, >>, >>>)

The bitwise operators work with numbers on the core level of programming. Consider that all numbers are stored in a standard (IEEE-754) 64-bit format. During bitw...