Available Seats
Write a JavaScript function that accepts an array of seat states, loops through it, and returns the number of seats still available.
JavaScript
Challenge overview
- Format
- Build a Function
- Category
- JavaScript
- Difficulty
- Beginner
javascriptfunctionsarraysloopscounting
Keep practicing
More coding challenges
Python · Beginner
Available Seats in Python
Write a Python function that accepts a list of seat states, loops through it, and returns the number of seats still available.
View challengeJavaScript · Beginner
Battery Warning
Use a JavaScript if statement to detect a low battery level and print a clear warning when the charge drops below 20 percent.
View challengePython · Beginner
Battery Warning in Python
Use a Python if statement to check a battery level and print a warning only when the provided value falls below the required threshold.
View challenge

