The only difference between the three formats are readability. So long as you have the right number of brackets/parenthesis and all the semicolons, any format works. (Bottoms my favorite). My point is that, coding errors aren't usually due to a bad format. But a bad format (such as the first example) makes it so much easier to screw up.
The reason why I like the third format is because you see all the brackets and you can easily tell when one is missing, whereas on first glance with the second one, the first bracket seems to be missing.
"Oh no, it's true! I'm a love magnet!"
Calvin from Calvin and Hobbes
My name's Anonymous_Alcoholic.