Complete the code to create a new frame in Figma.
const frame = figma.create[1]();In Figma's plugin API, createFrame() creates a new frame object.
Complete the code to set the frame's background color to white.
frame.fills = [{ type: 'SOLID', color: [1] }];White color in RGB is represented by r=1, g=1, b=1 in Figma's color system.
Fix the error in the code to add the frame to the current page.
figma.currentPage.[1](frame);The correct method to add a node to the page is appendChild().
Fill both blanks to create a text node and set its content.
const text = figma.create[1](); text.[2] = 'Design Sprint';
Use createText() to create a text node and set its characters property to change the text content.
Fill all three blanks to group the frame and text into a component.
const component = figma.create[1](); component.appendChild([2]); component.appendChild([3]);
Create a component with createComponent() and add the frame and text nodes as children.
