0
0
Figmabi_tool~10 mins

Variables in prototypes 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 declare a variable in a Figma prototype.

Figma
let [1] = 10;
Drag options to blanks, or click blank then click option'
Acount
Bvar
Cscore
Dvalue
Attempts:
3 left
💡 Hint
Common Mistakes
Using reserved keywords as variable names
Starting variable names with numbers
2fill in blank
medium

Complete the code to update a variable value in a Figma prototype.

Figma
[1] = 20;
Drag options to blanks, or click blank then click option'
Ascore
Bconst score
Cvar score
Dlet score
Attempts:
3 left
💡 Hint
Common Mistakes
Redeclaring the variable with let when updating
Using const which prevents reassignment
3fill in blank
hard

Fix the error in the variable declaration for a Figma prototype.

Figma
let [1] = 'blue';
Drag options to blanks, or click blank then click option'
A1color
Bcolor1
Cvar
Dlet
Attempts:
3 left
💡 Hint
Common Mistakes
Starting variable names with numbers
Using reserved keywords as variable names
4fill in blank
hard

Fill both blanks to create and update a variable in a Figma prototype.

Figma
[1] color = 'red';
color [2] 'blue';
Drag options to blanks, or click blank then click option'
Alet
B=
C==
Dconst
Attempts:
3 left
💡 Hint
Common Mistakes
Using == for assignment instead of comparison
Using const when the variable needs to be updated
5fill in blank
hard

Fill all three blanks to declare a variable, update it, and log it in a Figma prototype.

Figma
[1] count [2] 5;
count [3] 10;
console.log(count);
Drag options to blanks, or click blank then click option'
Alet
B=
C+=
Dconst
Attempts:
3 left
💡 Hint
Common Mistakes
Using const when variable needs to change
Using += instead of = when replacing value