0
0
Figmabi_tool~10 mins

Frame vs group difference in Figma - Interactive Practice

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

Complete the code to create a Frame in Figma.

Figma
const container = figma.currentPage.[1]({ name: 'Main Frame' });
Drag options to blanks, or click blank then click option'
AcreateFrame
BcreateGroup
CcreateComponent
DcreateRectangle
Attempts:
3 left
💡 Hint
Common Mistakes
Using createGroup instead of createFrame
Confusing frames with components
2fill in blank
medium

Complete the code to create a Group in Figma.

Figma
const group = figma.currentPage.[1](nodes);
Drag options to blanks, or click blank then click option'
AcreateFrame
BcreateGroup
CcreateComponent
DcreateInstance
Attempts:
3 left
💡 Hint
Common Mistakes
Using createFrame instead of createGroup
Trying to create a group without nodes
3fill in blank
hard

Fix the error in the code to add a child to a Frame.

Figma
frame.[1](child);
Drag options to blanks, or click blank then click option'
Aadd
BaddChild
Cappend
DappendChild
Attempts:
3 left
💡 Hint
Common Mistakes
Using addChild which does not exist
Using append which is not a Figma method
4fill in blank
hard

Fill both blanks to check if a node is a Frame or a Group.

Figma
if (node.type === [1] || node.type === [2]) {
  console.log('Node is a container');
}
Drag options to blanks, or click blank then click option'
A"FRAME"
B"GROUP"
C"COMPONENT"
D"INSTANCE"
Attempts:
3 left
💡 Hint
Common Mistakes
Using COMPONENT or INSTANCE instead of FRAME or GROUP
Using lowercase strings instead of uppercase
5fill in blank
hard

Fill all three blanks to create a Frame, add a child, and set layout mode.

Figma
const frame = figma.currentPage.[1]({ name: 'Container' });
frame.[2](childNode);
frame.layoutMode = [3];
Drag options to blanks, or click blank then click option'
AcreateFrame
BappendChild
C"HORIZONTAL"
DcreateGroup
Attempts:
3 left
💡 Hint
Common Mistakes
Using createGroup instead of createFrame
Using addChild instead of appendChild
Setting layoutMode to an invalid value