Grilled Cheese

ExploreLog inSign up
Terms of UsePrivacy PolicyCommunity StandardsHelpGet the app

Grilled Cheese is a product of Village Compute

Version devBuilt at: 2026-12-03 22:42:33 EST

PhotosVideosAllPeople
LatestRanked
Dev Interview
JavaScript code in permissions.js. Two sets: const userPermissions = new Set(['read', 'write', 'delete']) and const pagePermissions = new Set(['read', 'write', 'admin']). Comment "what the user is missing to open the page": pagePermissions.difference(userPermissions) gives Set { 'admin' } (highlighted). Comment "what they have in common": userPermissions.intersection(pagePermissions) gives Set { 'read', 'write' } (highlighted). Comment "everything combined": userPermissions.union(pagePermissions) gives Set { 'read', 'write', 'delete', 'admin' }. Comment "can the user open the page?": pagePermissions.isSubsetOf(userPermissions) gives false.