Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to create a new Figma team workspace.
Figma
figma.teams.create({ name: [1] }) Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using a number instead of a string for the team name.
Leaving the name blank or null.
✗ Incorrect
To create a new team workspace, you need to provide a name as a string.
2fill in blank
mediumComplete the code to invite a user to the Figma workspace by email.
Figma
figma.teams.invite({ team_id: 'team123', email: [1] }) Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Passing a variable without quotes.
Using a number or boolean instead of a string.
✗ Incorrect
The email must be a string with the user's email address in quotes.
3fill in blank
hardFix the error in the code to set the workspace role for a user.
Figma
figma.teams.setRole({ team_id: 'team123', user_id: 'user456', role: [1] }) Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using a bare word without quotes.
Passing a boolean or null instead of a string.
✗ Incorrect
The role must be a string value, so it needs quotes around it.
4fill in blank
hardFill both blanks to create a new Figma project inside a team workspace.
Figma
figma.projects.create({ team_id: [1], name: [2] }) Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using numbers instead of strings for IDs.
Forgetting quotes around the project name.
✗ Incorrect
The team_id should be a string ID, and the project name should be a string in quotes.
5fill in blank
hardFill all three blanks to update a user's permissions in a Figma workspace.
Figma
figma.permissions.update({ team_id: [1], user_id: [2], permission: [3] }) Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Passing booleans or numbers instead of strings.
Missing quotes around any of the values.
✗ Incorrect
All IDs and permission values must be strings in quotes.