Skip to content

Instantly share code, notes, and snippets.

@dogweather
Last active August 26, 2022 01:30
Embed
What would you like to do?
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