Complete the code to select a Figma community file by its unique ID.
const file = figma.importFileByKey('[1]');
The correct property to import a Figma community file is fileKey, which uniquely identifies the file.
Complete the code to filter community files by a specific tag.
const filteredFiles = communityFiles.filter(file => file.tags.includes('[1]'));
The code filters files that include the tag prototype in their tags array.
Fix the error in the code to correctly retrieve the number of likes on a community file.
const likesCount = communityFile.[1];The correct property to get the number of likes is likeCount.
Fill both blanks to create a summary object with file name and number of views.
const summary = { name: communityFile.[1], views: communityFile.[2] };The file's title is accessed by title and the number of views by viewCount.
Fill all three blanks to filter community files by popularity and map to their titles.
const popularTitles = communityFiles.filter(file => file.[1] > [2]).map(file => file.[3]);
This code filters files with more than 1000 likes and maps their titles.