- Instructions X Web Preview Ide Help X Campground Reservations Part 4 Available Capacity Keep It Up You Re Doing Great 1 (26.45 KiB) Viewed 65 times
Instructions x Web Preview IDE Help X Campground reservations, part 4: Available capacity Keep it up! You're doing great
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Instructions x Web Preview IDE Help X Campground reservations, part 4: Available capacity Keep it up! You're doing great
Instructions x Web Preview IDE Help X Campground reservations, part 4: Available capacity Keep it up! You're doing great. solution is x What's the capacity of the nonreserved sites? We want to know how many more guests we can accommodate, on the sites that aren't reserved right now. Can you help us? 1: Run Output Given a campgrounds array, return the total number of people the campground can host, on the sites that aren't reserved right now. In other words, if all the currently available campsites were filled to maximum capacity, how many people would that be? Name your function additional Capacity const campgrounds = [ artySize: 8, 1sReserved: false ), partySize: 4, isReserved: false }, partySize: 4, isReserved: true), (number: 18, view: "forest", partySize: 4, isReserved: false ), (number: 23, view: "forest", partySize: 4, isReserved: true ), (number: 1, view: "oce- (number: 5, view: "oc (number: 12, view: "occan", solution.test.js Dataset As a reminder, the data looks like this. It's an array with a bunch of campsite objects in it. Here is a small subset of the data to give you an idea