Declaring Variables in JavaScript
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;
Leave a Reply