Complete the code to declare a variable in a Figma prototype.
let [1] = 10;
In Figma prototypes, you declare variables with let followed by the variable name. Here, score is a valid variable name.
Complete the code to update a variable value in a Figma prototype.
[1] = 20;
let when updatingconst which prevents reassignmentTo update a variable's value, just use the variable name followed by the assignment operator. No need to redeclare with let or const.
Fix the error in the variable declaration for a Figma prototype.
let [1] = 'blue';
Variable names cannot start with a number. color1 is valid because it starts with a letter.
Fill both blanks to create and update a variable in a Figma prototype.
[1] color = 'red'; color [2] 'blue';
== for assignment instead of comparisonconst when the variable needs to be updatedUse let to declare a variable and = to assign or update its value.
Fill all three blanks to declare a variable, update it, and log it in a Figma prototype.
[1] count [2] 5; count [3] 10; console.log(count);
const when variable needs to change+= instead of = when replacing valueDeclare with let, assign with =, and update with = for a new value. Here, count = 10; replaces the old value.