Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to export a frame as a PNG file.
Figma
figma.exportAsync(node, { format: '[1]' }) Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'SVG' instead of 'PNG' for raster export.
Using 'PDF' which is vector-based, not PNG.
✗ Incorrect
To export as a PNG, the format must be set to 'PNG'.
2fill in blank
mediumComplete the code to export a selection as an SVG file.
Figma
figma.exportAsync(selection, { format: '[1]' }) Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'PNG' which is raster, not vector.
Using 'JPG' which does not support transparency.
✗ Incorrect
SVG is the correct format for vector graphics export.
3fill in blank
hardFix the error in the export code to generate a PDF file.
Figma
figma.exportAsync(node, { format: '[1]' }) Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'bmp' which is not supported for export.
Using 'SVG' when PDF is required.
✗ Incorrect
PDF is the correct format string to export as a PDF file.
4fill in blank
hardFill both blanks to export a node as a PNG with 2x scale.
Figma
figma.exportAsync(node, { format: '[1]', [2]: 2 }) Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping 'format' and 'scale' keys.
Using 'quality' which is for JPEG exports.
✗ Incorrect
The 'scale' property sets the export scale to 2, and 'format' must be 'PNG'.
5fill in blank
hardFill all three blanks to export a selection as a PDF with 300 DPI and no compression.
Figma
figma.exportAsync(selection, { format: '[1]', [2]: 300, [3]: false }) Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'PNG' instead of 'PDF' for format.
Setting compress to true when no compression is needed.
✗ Incorrect
Set format to 'PDF', dpi to 300 for print quality, and compress to false to disable compression.