Complete the code to add a comment in Figma.
figma.currentPage.selection[0].[1] = 'Great design!'
In Figma, you add comments using the comment property on selected objects.
Complete the code to retrieve all comments on the current page.
const comments = figma.currentPage.[1];The comments property holds all comments on the current page in Figma.
Fix the error in the code to post a comment at position (100, 200).
figma.currentPage.[1]({ x: 100, y: 200 }, 'Looks good!')
The correct method to add a comment at a position is createComment.
Fill both blanks to filter comments by author and get their messages.
const authorComments = figma.currentPage.comments.filter(c => c.[1] === 'Alice').map(c => c.[2]);
Comments have an author property and their text is in message.
Fill all three blanks to add a reply to a comment and then resolve it.
const reply = comment.[1]('I agree!'); comment.[2] = true; figma.notify('[3] resolved');
Use addReply to reply, set isResolved to true to resolve, and notify with 'resolved'.
