Which is the best practice for variable declaration within the function ? Or is it vary from one language to other one ?