Instructions x Web Preview IDE Help X Campground reservations, part 4: Available capacity Keep it up! You're doing great

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
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

Post by answerhappygod »

Instructions X Web Preview Ide Help X Campground Reservations Part 4 Available Capacity Keep It Up You Re Doing Great 1
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. 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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply