0
0
Figmabi_tool~10 mins

Content generation plugins (Lorem ipsum, icons) in Figma - Interactive Code Practice

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

Complete the code to generate placeholder text using a Lorem Ipsum plugin.

Figma
const placeholderText = figma.plugins.[1]('paragraph');
Drag options to blanks, or click blank then click option'
AgenerateLorem
BloremIpsum
CinsertLorem
DcreateLorem
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect function names like generateLorem or createLorem.
2fill in blank
medium

Complete the code to insert an icon from the icon plugin into the current Figma document.

Figma
figma.currentPage.appendChild(figma.plugins.[1]('iconName'));
Drag options to blanks, or click blank then click option'
AaddIcon
BinsertIcon
CgetIcon
DcreateIcon
Attempts:
3 left
💡 Hint
Common Mistakes
Using methods that do not exist like getIcon or addIcon.
3fill in blank
hard

Fix the error in the code to correctly generate 3 paragraphs of Lorem Ipsum text.

Figma
const text = figma.plugins.loremIpsum({ count: [1] });
Drag options to blanks, or click blank then click option'
Athree
B'3'
C3
Dcount
Attempts:
3 left
💡 Hint
Common Mistakes
Passing '3' as a string instead of a number.
4fill in blank
hard

Fill both blanks to create a dictionary mapping icon names to their SVG data using the icon plugin.

Figma
const icons = { [1]: figma.plugins.createIcon([2]) };
Drag options to blanks, or click blank then click option'
A'home'
B'user'
Chome
Duser
Attempts:
3 left
💡 Hint
Common Mistakes
Using unquoted keys or mismatched icon names.
5fill in blank
hard

Fill all three blanks to generate 5 icons named 'star' and add them to the current page.

Figma
for(let i = 0; i < [1]; i++) { const icon = figma.plugins.[2]('[3]'); figma.currentPage.appendChild(icon); }
Drag options to blanks, or click blank then click option'
A5
BcreateIcon
Cstar
DinsertIcon
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong method names or unquoted icon names.