Complete the code to create a mobile frame with the correct preset size.
const mobileFrame = figma.createFrame(); mobileFrame.resize([1], 812);
The width for a standard mobile frame is 375 pixels.
Complete the code to set the frame name to 'DESKTOP' for a desktop frame.
const desktopFrame = figma.createFrame(); desktopFrame.name = '[1]';
Setting the frame name to 'DESKTOP' identifies it as a desktop frame.
Fix the error in the code to create a tablet frame with correct width.
const tabletFrame = figma.createFrame(); tabletFrame.resize([1], 1024);
The standard width for a tablet frame is 768 pixels.
Fill both blanks to create a desktop frame with width 1440 and height 1024.
const desktopFrame = figma.createFrame(); desktopFrame.resize([1], [2]);
Desktop frames commonly use 1440 width and 1024 height.
Fill all three blanks to create a mobile frame, set its name, and resize it correctly.
const mobileFrame = figma.createFrame(); mobileFrame.name = '[1]'; mobileFrame.resize([2], [3]);
Mobile frames have name 'MOBILE' and size 375x812 pixels.
