ClassesBlockblockly.block.setcommenttextOn this pageHome > blockly > Block > setCommentText Block.setCommentText() method Set this block's comment text. Signature: setCommentText(text: string | null): void; Parameters ParameterTypeDescriptiontextstring | nullThe text, or null to delete. Returns: void