Instructions x Web Preview IDE Help X Campground reservations, part 4: Available capacity Keep it up! You're doing great
Posted: Fri Jul 01, 2022 5:46 am
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