🚀 LEVEL UP TO SENIOR:Unlock 500+ Advanced Practical Challenges & Exercises.
🎓 COURSERA PARTNER:Earn professional Google, Meta, and IBM certificates to supercharge your resume.

Project 10: Real Estate Card

JS Wizard
Step 1 of 3
Project

A Set for Unique Amenities

Build a Set from an array of amenities that has a duplicate entry, then log its size. A Set automatically discards duplicates — exactly what you want when a listing's amenities were pulled from multiple sources and might overlap.

🎯 Your Task

Please add the exact code shown in the light gray box below to your editor.Do not delete your previous code, just insert these new lines in the correct place!

const amenitiesList = ["Garage", "Pool", "Garage", "Fireplace"];
const amenities = new Set(amenitiesList);

console.log(amenities.size);
console.log(amenities.has("Pool"));