WebProgramming Academy

Chapter Three: Variables and Operators

In this chapter we will discuss about variables and operators used in javascript and why we will use them in javascript. Much like algebra, we can use javascript to do calculation and make good use in our website.

Variables

Variables in javascript like in algebra, hold a value. Variables can be anything, it ranges from letters to words. The value can be anything you want it to be. It could be a number that you want to calculate or it can be a word that you want to repeat often.

Operatiors

Operatiors are addition, subtraction, multiplication and division. They are used with variables to do calculations.