Complete the code to create a rectangle shape in Figma.
const rect = figma.createRectangle(); rect.[1] = 100;
The width property sets the rectangle's width in pixels.
Complete the code to create an ellipse with a height of 150 pixels.
const ellipse = figma.createEllipse(); ellipse.[1] = 150;
The height property sets the vertical size of the ellipse.
Fix the error in the code to set the corner radius of a rectangle.
const rect = figma.createRectangle(); rect.corner[1] = 10;
The correct property name is cornerRadius with a lowercase 'r'.
Fill both blanks to create a rectangle and set its width and height.
const rect = figma.createRectangle(); rect.[1] = 200; rect.[2] = 100;
Set width and height properties to define rectangle size.
Fill all three blanks to create an ellipse, set its width, height, and stroke weight.
const ellipse = figma.createEllipse(); ellipse.[1] = 120; ellipse.[2] = 80; ellipse.[3] = 5;
Set width, height, and strokeWeight to define ellipse size and border thickness.
