blockly > Block > getCommentText

Block.getCommentText() method

Returns the comment on this block (or null if there is no comment).

Signature:

getCommentText(): string | null;

Returns:

string | null

Block's comment.