use var in javascript code example
Example 1: how to define variable in javascript
var <variable-name>;
var <variable-name> = <value>;
Example 2: varaible javascript
let <var-name> = value;
var <variable-name>;
var <variable-name> = <value>;
let <var-name> = value;