Skip to content

Instantly share code, notes, and snippets.

@dogweather
Last active August 26, 2022 01:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dogweather/4f4cdecb0e57063ca1a63a463752962c to your computer and use it in GitHub Desktop.
Save dogweather/4f4cdecb0e57063ca1a63a463752962c to your computer and use it in GitHub Desktop.
let car_ids = [];
for (let i = 1; i <= 5; i++) {
const car_id = `car-${i}`;
if (car_is_empty(car_id)) {
car_ids.push(car_id);
}
}
return car_ids;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment