is it okay to initialize variable in javascript inside function code example Example: how to instialise var in js var variable-name = number; /*eg*/ var a = 10;