JavaScript tips
I was writing a lot of jQuery and JavaScript this weekend, and two tips that I would like to jot down for future reference:
1. Place open brace on new line in Visual Studio
I used to place open brace on new line, so my codes would look more tidy with proper indentation.
Enable this feature in Visual Studio: Tools > Options > Text Editor > JScript > New Lines
2. No function overloading in JavaScript
I thought JavaScript is similar to C#, so I wrote few functions with different signatures. However, the fact is not and it doesn't work like as I expected. <sigh>