how to instialise var in js

JavaScript
var variable-name = number;
/*eg*/
var a = 10;
Source

Also in JavaScript: