Main Menu

Categories

Subscribe

Declaring Variables in JavaScript

March 15th, 2009

Before you start using variables in Javascript, you have to declare them first by adding the keyword var before the variable name.

Example

var name = "Keith Donegan";

You can also declare multiple with only one var keyword

Example

var name, num, customer;

No Comments

Leave a Reply