Declaring variables and functions, in what order?
问题 Context I'm learning how to code in javascript consistently, readably and maintainably. I found nothing about the order of declaration of variables and functions. Example: var example = { A: function() { var a, b, c; }, B: function() { var a, b, c; }, C: function() { var a, b, c; } } Questions Alphabetically is the best one ? Is that the order can improve the speed of code execution ? 回答1: I use jslint to check the code quality. It can be integrated with Visual Studio and a lot of other stuff