Find the First Available Seat
Use Array.find() to return the first seat whose availability is exactly true, or null when the list contains no open seats.
JavaScript
Challenge overview
- Format
- Build a Function
- Category
- JavaScript
- Difficulty
- Beginner
arraysobjectsfindfunctionsnull
Keep practicing
More coding challenges
Python · Beginner
Find the First Available Seat in Python
Use Python's next() with a generator to return the first truly available seat label, or None when the list has no open seats.
View challengeJavaScript · Beginner
Find the Low Stock Products
Write a JavaScript function that returns low-stock product names in source order, including items exactly at the requested inventory limit.
View challengePython · Beginner
Find the Low Stock Products in Python
Write a Python function that returns low-stock product names in their original order, including items exactly at the supplied limit.
View challenge

