Complete the code to make the text bold in Figma.
textNode.fontName = { family: 'Roboto', style: '[1]' };Setting the style to 'Bold' makes the text bold in Figma.
Complete the code to underline the text in Figma.
textNode.textDecoration = '[1]';
Setting textDecoration to 'UNDERLINE' adds an underline to the text.
Fix the error in the code to convert text to uppercase in Figma.
textNode.characters = textNode.characters.[1]();The method toUpperCase() converts text to uppercase in JavaScript, which Figma plugin code uses.
Fill both blanks to make the text italic and strikethrough in Figma.
textNode.fontName = { family: 'Roboto', style: '[1]' };
textNode.textDecoration = '[2]';Setting style to 'Italic' makes text italic. Setting textDecoration to 'STRIKETHROUGH' adds a strikethrough.
Fill all three blanks to set font to bold, underline text, and convert characters to lowercase in Figma.
textNode.fontName = { family: 'Roboto', style: '[1]' };
textNode.textDecoration = '[2]';
textNode.characters = textNode.characters.[3]();Bold style makes text bold, UNDERLINE adds underline decoration, and toLowerCase() converts text to lowercase.