javascript var x = {} vs var x = [] 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;