0
0
Figmabi_tool~10 mins

Why shapes build visual elements in Figma - Test Your Understanding

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to create a rectangle shape in Figma.

Figma
const rectangle = figma.create[1]();
Drag options to blanks, or click blank then click option'
ARectangle
BText
CLine
DEllipse
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'Ellipse' instead of 'Rectangle' will create a circle or oval shape.
Using 'Text' creates text elements, not shapes.
2fill in blank
medium

Complete the code to set the fill color of a shape to red.

Figma
rectangle.fills = [{ type: 'SOLID', color: { r: [1], g: 0, b: 0 } }];
Drag options to blanks, or click blank then click option'
A0
B0.5
C255
D1
Attempts:
3 left
💡 Hint
Common Mistakes
Using 255 is incorrect because Figma uses 0-1 scale, not 0-255.
Using 0 means no red color.
3fill in blank
hard

Fix the error in the code to add the rectangle to the current page.

Figma
figma.currentPage.[1](rectangle);
Drag options to blanks, or click blank then click option'
Aappend
BaddChild
CappendChild
DappendChildNode
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'append' causes an error because Figma API uses 'appendChild'.
Using 'addChild' is not a valid method.
4fill in blank
hard

Fill both blanks to create a circle shape and set its radius.

Figma
const circle = figma.create[1]();
circle.[2] = 50;
Drag options to blanks, or click blank then click option'
AEllipse
BRectangle
Cradius
DcornerRadius
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'Rectangle' creates a rectangle shape, not a circle.
Using 'radius' property does not exist on the shape.
5fill in blank
hard

Fill all three blanks to create a text element, set its content, and add it to the page.

Figma
const text = figma.create[1]();
text.[2] = 'Hello World';
figma.currentPage.[3](text);
Drag options to blanks, or click blank then click option'
AText
Bcharacters
CappendChild
DRectangle
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'Rectangle' instead of 'Text' creates a shape, not text.
Using 'text' property instead of 'characters' causes no text to appear.
Using 'append' instead of 'appendChild' causes an error.