My First Java

JavaScript Numbers

Number can be written with or without decimals.

JavaScript Strings

Strings can be written with double or single quotes.

JavaScript Operators

JavaScript uses arithmetic operators to compute values (just like algebra).

JavaScript Variables

In this example, x, y, and z are variables.

JavaScript Operators

x = 5, y = 2, calculate z = x + y, and display z:

A typical arithmetic operation takes two numbers and produces a new number.

A typical arithmetic operation takes two numbers (or expressions) and produces a new number.

The = Operator

The -= Operator