how to initialize a variable in javascript code example
Example 1: how to define variable in javascript
var <variable-name>;
var <variable-name> = <value>;
Example 2: how to instialise var in js
var variable-name = number;
/*eg*/
var a = 10;
var <variable-name>;
var <variable-name> = <value>;
var variable-name = number;
/*eg*/
var a = 10;