0
0
Figmabi_tool~10 mins

Why visuals enhance design quality 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 add a rectangle shape in Figma.

Figma
const rect = figma.createRectangle(); rect.[1](100, rect.height);
Drag options to blanks, or click blank then click option'
Aheight
Bresize
Cfill
Dstroke
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing resize with direct property assignment like width = 100.
2fill in blank
medium

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

Figma
rect.fills = [{ type: 'SOLID', color: { r: [1], g: 0, b: 0 } }];
Drag options to blanks, or click blank then click option'
A1
B0
C100
D255
Attempts:
3 left
💡 Hint
Common Mistakes
Using 255 instead of 1 for color values.
3fill in blank
hard

Fix the error in the code to add a text node with content 'Hello'.

Figma
const text = figma.createText(); text.characters = [1];
Drag options to blanks, or click blank then click option'
AHello
B"Hello"
C'Hello'
D`Hello`
Attempts:
3 left
💡 Hint
Common Mistakes
Forgetting quotes around text string.
4fill in blank
hard

Fill both blanks to create a frame and add a rectangle inside it.

Figma
const frame = figma.create[1](); frame.appendChild(figma.create[2]());
Drag options to blanks, or click blank then click option'
AFrame
BRectangle
CText
DEllipse
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong shape types or incorrect creation methods.
5fill in blank
hard

Fill all three blanks to create a blue ellipse with width 150 and height 100.

Figma
const ellipse = figma.createEllipse(); ellipse.resize([1], [2]); ellipse.fills = [{ type: 'SOLID', color: { r: 0, g: 0, b: [3] } }];
Drag options to blanks, or click blank then click option'
A150
B100
C1
D255
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping width and height order, or using 255 instead of 1 for color.