do javascript variables have to be declared before they can be initialized code example Example: how to instialise var in js var variable-name = number; /*eg*/ var a = 10;