Space between "for" and "(". Space + capital letter in the comment.

(And the extra n=parts.length assignment *really* isn't necessary.)