• I didn't really care so just guessed and got it right.

    Most developers will only ever use one method. That may depend on in-house standards but I'd recommend that used in the first example.

    I imagine the sixth (duplicate) one should have had square brackets.