Complete the code to apply a style to a selected node in Figma.
node.[1] = styleIdTo apply a fill style to a node, you assign the style ID to the fillStyleId property.
Complete the code to detach styles from a node in Figma.
node.[1]()The detachStyle() method removes the applied style from the node, making it independent.
Fix the error in the code to properly detach text styles from a node.
if (node.[1]) { node.detachStyle() }
To check if a text style is applied, check textStyleId before detaching.
Fill both blanks to apply a stroke style and then detach it from a node.
node.[1] = styleId node.[2]()
Assign the stroke style ID to strokeStyleId and call detachStyle() to remove it.
Fill all three blanks to apply a fill style, check if it exists, and detach it from a node.
node.[1] = styleId if (node.[2]) { node.[3]() }
Assign the fill style ID to fillStyleId, check if it exists, then call detachStyle() to remove it.