Brackets ([])

  • Use brackets to set off information already within parentheses.

    Use brackets with commands or code syntax to enclose optional characters and arguments. For example: fileAttachments[0] = fileAttachment;. When using this convention, be sure to explain it to the reader.

  • When parentheses or brackets enclose an independent sentence, place the period or comma inside. Otherwise, place the period or comma outside.