0
0
Figmabi_tool~20 mins

Variables in prototypes in Figma - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Variable Mastery in Prototypes
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Variable Scope in Figma Prototypes

In Figma prototypes, variables can be used to store values that change during interactions. Which statement best describes the scope of a variable defined in a prototype?

AVariables are local to the frame where they are defined and cannot be accessed outside it.
BVariables are global and accessible across all frames and components in the prototype.
CVariables are shared only between components nested inside the same parent frame.
DVariables exist only during a single interaction and reset after it completes.
Attempts:
2 left
💡 Hint

Think about how variables help maintain state across different screens in a prototype.

dax_lod_result
intermediate
1:30remaining
Using Variables to Control Prototype Flow

Consider a Figma prototype where a variable step controls which screen is shown. Initially, step = 1. After clicking a button, step increments by 1. What is the value of step after clicking the button twice?

Figma
Initial step = 1
On button click: step = step + 1
A1
B2
C4
D3
Attempts:
2 left
💡 Hint

Each click increases step by 1 starting from 1.

🔧 Formula Fix
advanced
2:30remaining
Fixing Variable Reset Issue in Prototype

A designer notices that a variable score resets to 0 every time the user navigates to a new frame, losing the accumulated value. What is the most likely cause?

AThe variable <code>score</code> is defined as a local variable inside each frame instead of a global variable.
BThe variable <code>score</code> is not initialized before use.
CThe prototype does not have any interactions updating the <code>score</code> variable.
DThe variable <code>score</code> is set to reset on every frame load by default.
Attempts:
2 left
💡 Hint

Consider how variable scope affects persistence across frames.

visualization
advanced
3:00remaining
Visualizing Variable Changes in a Prototype Dashboard

You want to create a dashboard in your Figma prototype that shows the current value of a variable progress as a percentage bar. Which visualization approach is best practice?

AUse multiple fixed rectangles stacked vertically to represent progress steps, without linking to the variable.
BDisplay the <code>progress</code> value as plain text only, without any graphical element.
CUse a rectangle shape with width dynamically linked to the <code>progress</code> variable value, ranging from 0% to 100%.
DChange the background color of the entire frame based on the <code>progress</code> variable.
Attempts:
2 left
💡 Hint

Think about how to visually represent a percentage value clearly and intuitively.

🎯 Scenario
expert
3:30remaining
Designing a Multi-User Prototype with Shared Variables

You are designing a Figma prototype simulating a multi-user environment where users can update a shared variable status. Which limitation must you consider?

AFigma prototype variables are local to each user session and cannot be shared in real-time across multiple users.
BVariables in Figma prototypes automatically sync across all users in real-time without extra setup.
CVariables can be shared only if users are collaborating in the same frame simultaneously.
DFigma prototypes support server-side variables for multi-user synchronization.
Attempts:
2 left
💡 Hint

Consider how Figma prototypes handle variable state in multi-user scenarios.